ArrendaTools Plantillas
Módulo de Python que aplica plantillas jinja. Además inlcuye filtros que pueden ser útiles a los arrendadores para la generación de recibos de alquiler, facturas, generar informes,...
Requisitos
Este módulo requiere Python 3.7 o superior.
Uso
A continuación se muestra un ejemplo de cómo usar el módulo:
from arrendatools.plantillas.plantilla import aplicar_plantilla
import json
plantilla = "prueba.html"
fichero_datos = 'prueba.json'
with open(fichero_datos, encoding='utf-8') as json_file:
data = json.load(json_file)
doc = aplicar_plantilla("./", plantilla, data)
with open('prueba-rendered.html', "wb") as archivo:
archivo.write(doc.encode('utf-8'))
Metadata
Release files for arrendatools.plantillas 0.5.0
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 | Actions |
|---|---|---|---|---|
| arrendatools_plantillas-0.5.0.tar.gz | 15.6 kB | Without provenance | Details for arrendatools_plantillas-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arrendatools.plantillas-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for arrendatools.plantillas-0.5.0-py3-none-any.whl |
Total release size: 22.4 kB
Release files / arrendatools_plantillas-0.5.0.tar.gz
| Download URL | arrendatools_plantillas-0.5.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b55f25d89d0361a8df1f35bb8032de4635696c44aaacfb5164837353516b9736
|
|
BLAKE2b-256 checksum How to use checksums |
88efc804b1586c03c50d4347d616bb27515a7d11256e1738a1efee774f1cd2c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / arrendatools.plantillas-0.5.0-py3-none-any.whl
| Download URL | arrendatools.plantillas-0.5.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdcdad3947eae2c8153e10e99670d1d0ade81ebe74277e00c89841ee54fdb3a0
|
|
BLAKE2b-256 checksum How to use checksums |
c48df9a780f10284c40e21178e6d8b00b9f4b52476252b9fbf0e25e1949610f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for arrendatools.plantillas 0.5.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.