Python SDK for Pogodoc
Project description
Pogodoc Python SDK
The Pogodoc Python SDK enables developers to seamlessly generate documents and manage templates using Pogodoc’s API.
Installation
To install the Python SDK, just execute the following command
$ pip install pogodoc
Setup
To use the SDK you will need an API key which can be obtained from the Pogodoc Dashboard
Example
from pogodoc import PogodocClient, RenderConfig
def main():
client = PogodocClient(
token="YOUR_POGODOC_API_TOKEN",
)
response = client.generate_document(
template_id = "your-template-id",
data = {"name": "John Doe"},
render_config = RenderConfig(
type = "html",
target = "pdf",
format_opts = InitializeRenderJobRequestFormatOpts(
from_page = 1,
),
),
)
print("Generated document url:\n", response.output.data.url)
if __name__ == "__main__":
main()
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pogodoc-0.5.2.tar.gz.
File metadata
- Download URL: pogodoc-0.5.2.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3e90b3933b964a3eefc93d44d279fc108cb2f95d162b9faf08177bc85a83ec1
|
|
| MD5 |
e19af1da13c936464446fc80d72ef42b
|
|
| BLAKE2b-256 |
1204fd71604c0c2ad99b255e4ea52071e07c35759ee2266234d00317541045cb
|
Provenance
The following attestation bundles were made for pogodoc-0.5.2.tar.gz:
Publisher:
workflow.yml on Pogodoc/pogodoc-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pogodoc-0.5.2.tar.gz -
Subject digest:
d3e90b3933b964a3eefc93d44d279fc108cb2f95d162b9faf08177bc85a83ec1 - Sigstore transparency entry: 329471429
- Sigstore integration time:
-
Permalink:
Pogodoc/pogodoc-py@f7293126b631693f2d045b6a681f4cc4b042044b -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/Pogodoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@f7293126b631693f2d045b6a681f4cc4b042044b -
Trigger Event:
release
-
Statement type:
File details
Details for the file pogodoc-0.5.2-py3-none-any.whl.
File metadata
- Download URL: pogodoc-0.5.2-py3-none-any.whl
- Upload date:
- Size: 61.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9413c025883a30af86836e9b93cf8a501f7453e69dd95fffcad55245478687a
|
|
| MD5 |
eea97609554bbeb289ab5d5eb19f0ba5
|
|
| BLAKE2b-256 |
19541b0f4a80fdaf144ab1552e8a9b58feceb3fcbbcb2ab42f6ce763e4d81526
|
Provenance
The following attestation bundles were made for pogodoc-0.5.2-py3-none-any.whl:
Publisher:
workflow.yml on Pogodoc/pogodoc-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pogodoc-0.5.2-py3-none-any.whl -
Subject digest:
c9413c025883a30af86836e9b93cf8a501f7453e69dd95fffcad55245478687a - Sigstore transparency entry: 329471435
- Sigstore integration time:
-
Permalink:
Pogodoc/pogodoc-py@f7293126b631693f2d045b6a681f4cc4b042044b -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/Pogodoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@f7293126b631693f2d045b6a681f4cc4b042044b -
Trigger Event:
release
-
Statement type: