{ "info": { "author": "Sameer Kumar", "author_email": "sam@sameerkumar.website", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[logo]: https://pdfgeneratorapi.com/assets/deploy/web/images/logo-light.png \"PDFGeneratorAPI.com Python Wrapper Logo\"\n\n![alt text][logo] PDFGeneratorAPI.com Python wrapper\n==================================================== \n\n[![PyPI version](https://badge.fury.io/py/pdfgeneratorapi.svg)](https://badge.fury.io/py/pdfgeneratorapi)\n[![Build Status](https://travis-ci.org/sameerkumar18/pdfgeneratorapi-python.svg?branch=master)](https://travis-ci.org/sameerkumar18/pdfgeneratorapi-python)\n[![image](https://img.shields.io/pypi/v/pdfgeneratorapi.svg)](https://pypi.org/project/pdfgeneratorapi/)\n[![image](https://img.shields.io/pypi/l/pdfgeneratorapi.svg)](https://pypi.org/project/pdfgeneratorapi/)\n[![image](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/sameerkumar18)\n[![image](https://img.shields.io/badge/Paypal-Donate-blue.svg)](https://www.paypal.me/sameerkumar18)\n\nWith the PDF Generator API your users can easily create and manage different document templates with an easy-to-use browser based document editor and via API.\n\nAn API and template builder to generate PDF documents from Your software, from Your data.\n\nYou will first need to [register for a PDFGeneratorAPI account](https://pdfgeneratorapi.com/signup) to use this API. It's free to sign up, and use for testing and integration process.\n\n\nInstallation\n------------\n\nSupports Python 3+\nTo install, simply use pip\n```\n$ sudo pip install pdfgeneratorapi\n\u2728\ud83c\udf70\u2728\n```\n\nUsage\n-----\n\n```python\n\n>>> from pdfgeneratorapi import PDFGenerator\n\n>>> pdf_client = PDFGenerator(api_key='', api_secret='')\n>>> pdf_client.set_workspace('')\n```\n\n\nYou can pass the `api_key`, `api_secret` and `workspace` explicitly. Alternatively, declare these environment variables `PDF_GENERATOR_KEY`, `PDF_GENERATOR_SECRET`.\n\nFor wrapper usage code snippets please check examples.py\n\n#### Features\n\n\n```python\n\n>>> from pdfgeneratorapi import PDFGenerator\n>>> pdf_client = PDFGenerator(api_key='', api_secret='')\n>>> pdf_client.set_workspace('')\n```\n\n##### Generate a new Document\n```python\n>>> new_pdf = pdf_client.create_document(template_id=48484, data={\"name\": \"Sameer Kumar\"}, document_format=\"pdf\", response_format=\"url\")\n>>> new_pdf.response\n'https://us1.pdfgeneratorapi.com/share/5434/ce2fc41de8e51fc7db2cbc1700075a92'\n```\n##### Fetch All Templates\n```python\n>>> templates = pdf_client.all_templates(tags=['test_tag'], access=['private'])\n>>> templates[0].id\n1234\n>>> templates[0].name\n'Some name'\n```\n##### Get template by ID\n```python\n>>> template = pdf_client.get_template(template_id=)\n>>> template.layout.format\n'A4'\n```\n##### Create a new template\n```python\n>>> new_template = pdf_client.create_template(name='')\n>>> new_template.id\n24386\n>>> new_template.name\n'My new template'\n```\n##### Create a copy of a given template\n```python\n>>> copy_template = pdf_client.create_template_copy(template_id=48484, name=\"Copied template\")\n>>> copy_template.layout.format\n'A4'\n```\n##### Get a one-click link to web editor\n```python\n>>> editor_url = pdf_client.get_editor_url(template_id=48484, data={\"name\": \"Sameer\"})\n'https://us1.pdfgeneratorapi.com/api/v3/templates/19375/editor?key=61e5f04ca1794253ed17e6bb986c1702&workspace=demo.example@actualreports.com&signature=75d7c8fb0c06942da2bf76422f1a79eb72cada6d7ab07f7a7d0eaf8d510897d9&data=https://myawesomeapp.com/data/9129381823.json'\n```\n\nTests\n-----\nSet the following environment variable:\n1. `PDF_GENERATOR_KEY`\n2. `PDF_GENERATOR_SECRET`\n3. `PDF_GENERATOR_WORKSPACE`\n\nRun the test with the following command:\n\n```\n$ python setup.py test\n```\n\n## Default Values\n\nYou can explicitly override certain default assumptions like - \n- Authentication: Signature Authentication. To use Simple Authentication, simple pass `signature_auth=False` in the object init.\n- API URL: `https://.pdfgeneratorapi.com/api//` . To override - `api_url=''`.\n- API Key: `api_key`. Default loads from environment var `PDF_GENERATOR_KEY`\n- API Secret: `api_secret`. Default loads from environment var `PDF_GENERATOR_SECRET`\n- Workspace: `workspace`. Default loads from environment var `PDF_GENERATOR_WORKSPACE`\n- API Region: `api_region`. Default - \"us1\"\n- API Version: `api_version`. Default - \"v3\"\n- Document Format: `document_format`. Default - \"pdf\"\n- Response Format: `response_format`. Default - \"base64\"\n\n## Documentation\n\nPlease see [https://docs.pdfgeneratorapi.com/](https://docs.pdfgeneratorapi.com/) for complete up-to-date documentation.\n\n## About PDFGeneratorAPI.com\n\nPDF Generator API is a RESTful API and a template builder for creating PDF documents from Your software, from Your data. With PDF Generator API you can allow your users to create and manage different document templates with an easy-to-use browser based document editor. And you can merge templates with data from your own software via RESTful API to generate PDF and HTML documents.\n\n## Support\nIf you have any API related query/issue please contact support@pdfgeneratorapi.com\n\nFor any wrapper related query/issue, please raise a GitHub issue.\n## About Author\n[Sameer Kumar](https://www.sameerkumar.website/)\n\nFind me on [Twitter](https://twitter.com/sameer_kumar018)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sameerkumar18/pdfgeneratorapi-python", "keywords": "api wrapper client library pdfgeneratorapi pdfgenerator", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "pdfgeneratorapi", "package_url": "https://pypi.org/project/pdfgeneratorapi/", "platform": "", "project_url": "https://pypi.org/project/pdfgeneratorapi/", "project_urls": { "Homepage": "https://github.com/sameerkumar18/pdfgeneratorapi-python" }, "release_url": "https://pypi.org/project/pdfgeneratorapi/0.2/", "requires_dist": null, "requires_python": "", "summary": "A python client library for PDFGeneratorAPI.com", "version": "0.2" }, "last_serial": 5334379, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5e145fde371287a65314b43d2cb001ab", "sha256": "65d3c2b4bd3be926983b5d8a860da795f92c446d3635ffc02862fa8625906ce5" }, "downloads": -1, "filename": "pdfgeneratorapi-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5e145fde371287a65314b43d2cb001ab", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14156, "upload_time": "2019-05-25T10:52:45", "url": "https://files.pythonhosted.org/packages/8b/ea/f0e94e49c79458dc4991d6891498485589aa091ee4ce438e2e87fba2e84e/pdfgeneratorapi-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "114bf18c9a1da903e318c2202ccc37a2", "sha256": "45ba4580d4f5ec0de6ca25c0afb7fd26a444868a86e79ab3e920da83035dee1f" }, "downloads": -1, "filename": "pdfgeneratorapi-0.1.tar.gz", "has_sig": false, "md5_digest": "114bf18c9a1da903e318c2202ccc37a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10049, "upload_time": "2019-05-25T10:52:47", "url": "https://files.pythonhosted.org/packages/a6/25/d1e1a28d70cb9a51bcb39773899bee4e5d9c0b69ad178a5b51538ebc4367/pdfgeneratorapi-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "1a156431506dce556e9ac379d0f4c135", "sha256": "4e6b3b04f505e983bd6553828c6a0ea46f1f65ce712a985c2567916229c5181c" }, "downloads": -1, "filename": "pdfgeneratorapi-0.2.tar.gz", "has_sig": false, "md5_digest": "1a156431506dce556e9ac379d0f4c135", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10501, "upload_time": "2019-05-29T20:53:29", "url": "https://files.pythonhosted.org/packages/51/3d/a9e850e882795674ec3968fe4d818857553230684e8def3272a0c7e25c0a/pdfgeneratorapi-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1a156431506dce556e9ac379d0f4c135", "sha256": "4e6b3b04f505e983bd6553828c6a0ea46f1f65ce712a985c2567916229c5181c" }, "downloads": -1, "filename": "pdfgeneratorapi-0.2.tar.gz", "has_sig": false, "md5_digest": "1a156431506dce556e9ac379d0f4c135", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10501, "upload_time": "2019-05-29T20:53:29", "url": "https://files.pythonhosted.org/packages/51/3d/a9e850e882795674ec3968fe4d818857553230684e8def3272a0c7e25c0a/pdfgeneratorapi-0.2.tar.gz" } ] }