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.5.tar.gz (32.5 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.5-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pogodoc-0.5.5.tar.gz
Algorithm Hash digest
SHA256 cfd2b4ab2bac76ef2442b8c28e79aaefebe83e7b93334b9a0b1858d59a74ae3e
MD5 41f68136acd418b52ac6a6a19f790791
BLAKE2b-256 4cf55b8239aba2aedfb5416c353d5205bf592465e9e25a2670e55f1360ba6f47

See more details on using hashes here.

Provenance

The following attestation bundles were made for pogodoc-0.5.5.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.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pogodoc-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fb7dc1b616a50e764328faa3a1547ae64c5e4d58746443b9fe5b58192d57b35f
MD5 59a9b98cda7fb6573effcefdc83f6dd4
BLAKE2b-256 822c78d7baa8598ea0b223b285aa57f23fa850b45a226c08fed365ec161fb21e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pogodoc-0.5.5-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