command
module
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Jan 2, 2024
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
p2cli
p2cli is a portable Jinja2 (Ansible) template engine.
Usage
- From environement variables:
export STANDARDFILE_ADDRESS="localhost:5000"
export STANDARDFILE_NO_REGISTRATION=true
export STANDARDFILE_JWT_SECRET_KEY=verystrongsecret-jwt-env
export STANDARDFILE_SESSION__SECRET_KEY=verystrongsecret-paseto-env # This key converted to 'session.secret_key'
export STANDARDFILE_BROKERS='["localhost:6000","localhost:6001","localhost:6002"]' # JSON format
$ p2cli -p 'STANDARDFILE_' example.yml.j2
address: localhost:5000
no_registration: true
database_path: ""
secret_key: verystrongsecret-jwt-env
session:
secret: verystrongsecret-paseto-env
access_token_ttl: 1440h
refresh_token_ttl: 8760h
brokers:
- localhost:6000
- localhost:6001
- localhost:6002
$ p2cli -v example.varsfile.yml example.yml.j2
address: localhost:5000
no_registration: true
database_path: ""
secret_key: verystrongsecret-jwt
session:
secret: verystrongsecret-paseto
access_token_ttl: 440h
refresh_token_ttl: 8760h
brokers:
- localhost:6000
- localhost:6001
- localhost:6002
License
MIT
Contributing
All PRs are welcome.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.