textproc/py-docxtpl 0.20.2 FreeBSD
Python docx template engine
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
4b0d34734b- License
- LGPL21
- Categories
- textproc, python
- Package size
- 46.9 KiB, 205.9 KiB installed
Description
python-docx-template has been created because python-docx is powerful for creating documents but not for modifying them.
The idea is to begin to create an example of the document you want to generate with microsoft word, it can be as complex as you want: pictures, index tables, footer, header, variables, anything you can do with word. Then, as you are still editing the document with microsoft word, you insert jinja2-like tags directly in the document. You save the document as a .docx file (xml format). it will be your .docx template file.
Now you can use python-docx-template to generate as many word documents you want from this .docx template and context variables you will associate.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/py-docxtpl | 0.20.2 |
| DragonFly | textproc/py-docxtpl | 0.16.6_2 |
| HardenedBSD | textproc/py-docxtpl | 0.20.2 |
| GhostBSD | textproc/py-docxtpl | 0.20.2 |
Install
Binary package:
pkg install py312-docxtpl
From the ports tree:
cd /usr/ports/textproc/py-docxtpl/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-docxtpl>0:textproc/py-docxtpl
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.20.2 | 0.20.2 | - | 0.20.0_1 | 0.20.2 |
| FreeBSD:14:quarterly | 0.20.2 | 0.20.2 | n/a | 0.20.0 | 0.20.2 |
| FreeBSD:15:latest | 0.20.2 | 0.20.2 | n/a | 0.20.0_1 | 0.20.0_1 |
| FreeBSD:15:quarterly | 0.20.2 | 0.20.2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.20.2 | 0.20.2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Runtime 4
${PYTHON_PKGNAMEPREFIX}lxml>=3.3.4: devel/py-lxml${PYTHON_PKGNAMEPREFIX}python-docx>0: textproc/py-python-docx${PYTHON_PKGNAMEPREFIX}docxcompose>0: textproc/py-docxcompose${PYTHON_PKGNAMEPREFIX}Jinja2>0: devel/py-Jinja2
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 18
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| docxtpl-0.20.2.tar.gz | 17890 | eddf3350d70b4d123208e801d585bcb313d21044a377a14f75a66d0965841de1 |
Master sites 1
- PYPI