Skip to main content

generate xlsx file with jinja2 template

Project description

# how to use

jinja_env = jinja2.Environment() jinja_env.globals[“now”] = datetime.datetime.now jinja_env.add_extension(“jinja2.ext.do”)

data = {‘product’:’exceltpl’,”version”:’0.0.1’,’terminology’:[{‘key’:’N/A’,’value’:’Not applicable’}]}

doc = xlsxDocument(“examples/example.xlsx”, data, jinja_env) doc.render() doc.save(“examples/result.xlsx”)

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

exceltpl-0.0.1.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file exceltpl-0.0.1.tar.gz.

File metadata

  • Download URL: exceltpl-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for exceltpl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 35856a3595f7b0578712f0bc952ae4cd1d0c57d383127301a273ab054a9faaf4
MD5 9d0ad6e522fb0b0056647edd8e10b64a
BLAKE2b-256 4d9f9cad2fae541a8d81371e5f5f5db85d241cb881482d56751064b6b8b136a3

See more details on using hashes here.

Supported by

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