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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogodoc-0.5.7.tar.gz
  • Upload date:
  • Size: 32.3 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.7.tar.gz
Algorithm Hash digest
SHA256 0b7707eed1c4d169da3a79a0663af466693dd43d5ba485cc64f0ffb0745270d1
MD5 5fb99110109246006c1d32e696c0293a
BLAKE2b-256 760083ab546add1451d79d5147ed89a03b88a89fabc226b99ce347c6a3de98ca

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pogodoc-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 66.3 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b455c48f67c1dcec31c905c1de5f587a4ab22ed300b0088e6e129701dddc1bb9
MD5 f5a39cb56340cbd83225748818165750
BLAKE2b-256 5ecbe76492aff2da47005026b6e3a6babc34f8d90bceaf0c44f2910b6fecbcd8

See more details on using hashes here.

Provenance

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