amannocci / temply Goto Github PK
View Code? Open in Web Editor NEWRender jinja2 templates using the command line without python runtime.
License: Apache License 2.0
Render jinja2 templates using the command line without python runtime.
License: Apache License 2.0
Move all filters in a proper module to improve readability.
Currently, we use path library to handle files.
We could replace it by pathlib library.
It can be useful to make temply compatible with envtpl usage.
Currently, we use an old version of Python 3.6 which isn't supported anymore.
We can safely upgrade to Python 3.8.x.
Use PyInstaller 5.6.2 to build temply project
Describe the solution you'd like
Migrate to poetry for dependency management
Describe the solution you'd like
Support consul as source of variables
Describe the solution you'd like
Support redis as source of variables
Describe the solution you'd like
Add support for validation filter.
It will allow to validate of template variables within the template itself.
Traceback (most recent call last):
File "site-packages/PyInstaller/loader/rthooks/pyi_rth_pkgres.py", line 13, in <module>
File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module
File "site-packages/pkg_resources/__init__.py", line 85, in <module>
ModuleNotFoundError: No module named 'pkg_resources.py2_warn'
Describe the solution you'd like
Support file as source of variables :
Describe the solution you'd like
Support zookeeper as source of variables.
Describe the solution you'd like
Support etcd as source of variables
Describe the bug
when executing temply --keep-template -o on a template file containing %X, the command fails.
opt/symphony/app/conf$ temply --keep-template -o log4j2-spring.xml log4j2-spring.xml.tpl
Traceback (most recent call last):
File "temply", line 5, in
File "click/core.py", line 829, in call
File "click/core.py", line 782, in main
File "click/core.py", line 1066, in invoke
File "click/core.py", line 610, in invoke
File "temply/temply.py", line 70, in main
File "jinja2/environment.py", line 883, in get_template
File "jinja2/environment.py", line 857, in _load_template
File "jinja2/loaders.py", line 127, in load
File "jinja2/environment.py", line 638, in compile
File "jinja2/environment.py", line 832, in handle_exception
File "jinja2/_compat.py", line 28, in reraise
File "/opt/symphony/app/conf/log4j2-spring.xml.tpl", line 12, in template
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'X'.
[7751] Failed to execute script 'temply' due to unhandled exception!
To Reproduce
Expected behavior
command runs successful and the file gets rendered.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.