Skip to main content

Módulo de Python que aplica plantillas jinja. Además inlcuye filtros que pueden ser útiles para la generación de recibos de alquiler, facturas, informes,...

Project description

ArrendaTools Plantillas

License Build Status GitHub last commit GitHub commit activity

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'))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arrendatools_plantillas-0.5.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

arrendatools.plantillas-0.5.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file arrendatools_plantillas-0.5.0.tar.gz.

File metadata

File hashes

Hashes for arrendatools_plantillas-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b55f25d89d0361a8df1f35bb8032de4635696c44aaacfb5164837353516b9736
MD5 101154049abedc09332292554e6a2fa5
BLAKE2b-256 88efc804b1586c03c50d4347d616bb27515a7d11256e1738a1efee774f1cd2c5

See more details on using hashes here.

File details

Details for the file arrendatools.plantillas-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for arrendatools.plantillas-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdcdad3947eae2c8153e10e99670d1d0ade81ebe74277e00c89841ee54fdb3a0
MD5 0dcf19626a3ffd1e290007226e169302
BLAKE2b-256 c48df9a780f10284c40e21178e6d8b00b9f4b52476252b9fbf0e25e1949610f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page