Skip to main content

Upload Python Package

Pdf.write() args:

rows: list of dictionaries of data to be filled into PDF

map(optional): dictionary that maps values from rows to field names in the PDF

for example, if fields are ["Name", "Age"]

and rows are [{"foo" : "John", "bar" : 25}, {"foo" : "Jane", "bar" : 30}],

then map should be: {"Name" : "foo", "Age" : "bar"}

naming(optional): very simple naming convention dict.

naming["static_name"] will be the first part of the file name

naming["dynamic_name_key"] will be appended after a underscore. it will pull the (post mapping, if applicable) key value from each row and append it to the file name.

for example (using the rows and map from above), if naming = {"static_name" : "output", "dynamic_name_key" : "Name"}

then the file names will be: "output_John.pdf" and "output_Jane.pdf"

required_keys: if map is not None: if True, all values in map dictionary will be asserted

if you pass an iterable, then each value in the map dictionary that is in the iterable will be asserted

Release files for etb-pdf 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etb-pdf 0.1.2
File Size Uploaded
etb_pdf-0.1.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etb-pdf 0.1.2
File Interpreter ABI Platform
etb_pdf-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / etb_pdf-0.1.2.tar.gz

Download URL etb_pdf-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9dff8fad4e35a707ec3422ff00e0251ddcbe424a951380594a55acd24f40163a
BLAKE2b-256 checksum
How to use checksums
78af2ace559087f4a2bae6b9db87199e239ce50100660bbec5a52b67432ab2bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

Release files / etb_pdf-0.1.2-py3-none-any.whl

Download URL etb_pdf-0.1.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22ba45a86f6d68e4075b78ea87a3ca238b5a3092aef514bbd233119a92236e98
BLAKE2b-256 checksum
How to use checksums
158b6b42c98372da9f3cd03df59d360124c9d4f340b2daa4ced1a25b8eb182b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-39-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page