Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"client_class_name": "CloudPDFClient",
"environment_class_name": "CloudPDFEnvironment"
},
"originGitCommit": "0606e988ebff3773183ef02e0a820c36b3a25f8d",
"originGitCommit": "622018abaf6e4578d1f4d8377982c48b92c9ced3",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.0.0a19",
"requestedVersion": "3.0.0a20",
"ciProvider": "github"
}
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The official Python SDK for the CloudPDF API.
- [Installation](#installation)
- [Reference](#reference)
- [Usage](#usage)
- [Environments](#environments)
- [Async Client](#async-client)
- [Exception Handling](#exception-handling)
- [Advanced](#advanced)
Expand Down Expand Up @@ -39,7 +40,6 @@ from cloudpdf.doc import DocChangesRequestChangesItem

client = CloudPDFClient(
token="<token>",
base_url="https://yourhost.com/path/to/api",
)

client.doc.changes(
Expand All @@ -53,6 +53,19 @@ client.doc.changes(
)
```

## Environments

This SDK allows you to configure different environments for API requests.

```python
from cloudpdf import CloudPDFClient
from cloudpdf.environment import CloudPDFEnvironment

client = CloudPDFClient(
environment=CloudPDFEnvironment.SAAS,
)
```

## Async Client

The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
Expand All @@ -65,7 +78,6 @@ from cloudpdf import AsyncCloudPDFClient

client = AsyncCloudPDFClient(
token="<token>",
base_url="https://yourhost.com/path/to/api",
)


Expand Down
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"language": "python",
"canonicalVersion": "3.0.0-next.19",
"sdkVersion": "3.0.0a19",
"canonicalVersion": "3.0.0-next.20",
"sdkVersion": "3.0.0a20",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "e88e02ed71f422ad08b2393abeda474e8dcf6707b6e753af74ba2f40da8e7d6b",
"gitCommit": "0606e988ebff3773183ef02e0a820c36b3a25f8d",
"openapiSha256": "47d739acb956ce8ba0c3990117e505be2e9406038d9e0cd1729608921a40b2d9",
"gitCommit": "622018abaf6e4578d1f4d8377982c48b92c9ced3",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "cloudpdf"
version = "3.0.0a19"
version = "3.0.0a20"
description = "The official Python SDK for the CloudPDF API."
readme = "README.md"
authors = ["CloudPDF <hello@cloudpdf.com>"]
Expand Down
Loading
Loading