pydocxtpl
A docx templater.
How to install
pip install pydocxtpl
How to use
To use pydocxtpl, you need to be familiar with the syntax of jinja2 template.
- code sample
from pydocxtpl import DocxWriter
person_info = {'address': u'', 'name': u'', 'pic': '1.jpg'}
person_info2 = {'address': u'Somewhere over the rainbow', 'name': u'Hello Wizard', 'pic': '0.jpg'}
persons = [person_info, person_info2]
payload = {'persons': persons}
writer = DocxWriter('test.docx')
writer.render(payload)
writer.save('test_result.docx')
See examples.
Metadata
Release files for pydocxtpl 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pydocxtpl-0.2.1.tar.gz | 9.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydocxtpl-0.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / pydocxtpl-0.2.1.tar.gz
| Download URL | pydocxtpl-0.2.1.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f9a91dd929daeb1f71c3bbecd9d0144c7f34ef0f593fffa247a8d2584fa530c
|
|
BLAKE2b-256 checksum How to use checksums |
920d2895d9e0038c6a8676027293506a76bf55615419f09ce19ef593bf36033f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5
|
Release files / pydocxtpl-0.2.1-py2.py3-none-any.whl
| Download URL | pydocxtpl-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
457a34d89e224ce7c78b219423075cfdefc03d45163750c15cf940feef95d81c
|
|
BLAKE2b-256 checksum How to use checksums |
35b263684673b87b81ad605ccb628c57b057e8bb94fd578d5c234e7bcc6ccb34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5
|
Security for pydocxtpl 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.