config-templater-0.1.1


توضیحات

Simple python module to generate configurations from templates
ویژگی مقدار
سیستم عامل -
نام فایل config-templater-0.1.1
نام config-templater
نسخه کتابخانه 0.1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Marcel Neidinger
ایمیل نویسنده marcel.neidinger@nlogn.org
آدرس صفحه اصلی https://github.com/squ4rks/config_templater
آدرس اینترنتی https://pypi.org/project/config-templater/
مجوز MIT license
================ Config Templater ================ .. image:: https://img.shields.io/pypi/v/config_templater.svg :target: https://pypi.python.org/pypi/config_templater .. image:: https://img.shields.io/travis/squ4rks/config_templater.svg :target: https://travis-ci.org/squ4rks/config_templater .. image:: https://readthedocs.org/projects/config-templater/badge/?version=latest :target: https://config-templater.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status Simple python module to generate configurations from templates. This is useful if you want to use configuration files for local development but want to use environment variables for deployment (i.e. in a container environment). * Free software: MIT license Usage ----- You should run this script as a module. Executing in a directory will recursively parse the entire directory for *.conftpl* files and replace the jinja2 variables included with the corresponding environment variables. Example ------- Given a configuration template file *test.yml.conftpl* like this: .. code-block:: --- access_token: "{{ API_ACCESS_TOKEN }}" data_url: "{{ DATA_URL }}" You can do the following to generate a configuration file: .. code-block:: # Set environment variables $ export API_ACCESS_TOKEN="tdfkls0dkl1j313" $ export DATA_URL="https://custome_domain.io/webhook" $ python -m config_templater This will generate the following configuration in *test.yml* .. code-block:: --- access_token: "tdfkls0dkl1j313" data_url: "https://custome_domain.io/webhook" Credits ------- This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. .. _Cookiecutter: https://github.com/audreyr/cookiecutter .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage ======= History ======= 0.1.0 (2019-12-10) ------------------ * First release on PyPI.


زبان مورد نیاز

مقدار نام
>=3.5 Python


نحوه نصب


نصب پکیج whl config-templater-0.1.1:

    pip install config-templater-0.1.1.whl


نصب پکیج tar.gz config-templater-0.1.1:

    pip install config-templater-0.1.1.tar.gz