Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pogodoc-0.5.9.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pogodoc-0.5.9-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file pogodoc-0.5.9.tar.gz.

File metadata

  • Download URL: pogodoc-0.5.9.tar.gz
  • Upload date:
  • Size: 31.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pogodoc-0.5.9.tar.gz
Algorithm Hash digest
SHA256 0ad1959598af6cdb94e699a7fe3f75c6125647d30dc6f8141e44f1d3df4736ba
MD5 5f774177702614edfac75f9dbab37466
BLAKE2b-256 645ddda420dafb8b5f3a3f177be5f57be2fc0b4319b831844724dc507658d78c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pogodoc-0.5.9.tar.gz:

Publisher: workflow.yml on Pogodoc/pogodoc-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pogodoc-0.5.9-py3-none-any.whl.

File metadata

  • Download URL: pogodoc-0.5.9-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pogodoc-0.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3b041c05b07d6cbceb66855261fe16f44ef24dfd1a2dae2f2b54ce1a6d2bb930
MD5 4c6a9bc53e7fed575b2bb64f907eee10
BLAKE2b-256 9320bcf9950ed6b09861fb750f7e398350691252a757bf0d1dbcf4d0c88c6e81

See more details on using hashes here.

Provenance

The following attestation bundles were made for pogodoc-0.5.9-py3-none-any.whl:

Publisher: workflow.yml on Pogodoc/pogodoc-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page