Skip to content

offscale/offconf

offconf

No Maintenance Intended Python version range License Linting, testing, coverage, and release codecov black Imports: isort

Replace variables like ${foo} within files. Also works with environment variables ${env.bar}. Now handles piping to given functions and, custom arrow functions also.

See "CLI options" for how to provide additional normal+environment variables.

Install dependencies

pip install -r requirements.txt

Install package

pip install .

CLI options

$ python -m offconf -h
usage: __main__.py [-h] -f FILENAME -o OUTPUT_FILE [-v VARIABLES]
                   [-e ENV_VARIABLES]

Interpolate variables from file

optional arguments:
  -h, --help            show this help message and exit
  -f FILENAME, --filename FILENAME
                        Input file
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        Output file
  -v VARIABLES, --variables VARIABLES
                        Any variables to be interpolated (as JSON string)
  -e ENV_VARIABLES, --env-variables ENV_VARIABLES
                        Any environment variables to be interpolated (as JSON string)

License

Licensed under any of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

About

Replace variables like `${foo}` within files. Also works with environment variables `${env.bar}`.

Resources

License

Apache-2.0 and 2 other licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
CC0-1.0
LICENSE-CC0
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages