Injinja: Injectable Jinja Configuration tool.
Insanely configurable... config system.
- Recursive Deep Merge: Sick of scrolling giant mega config files? Would you rather have organised folders of smaller configs that act like they are part of the same big config? We recursively deep merge your config.
- Powerful: Any of your config files are now empowered with the full programming capabilities of
Jinjatemplating engine for better parametrising the one set of config files. - Flexible: You design your configuration schema yourself in any of JSON, YAML or TOML.
- Enabling: Separate your project config out to allow "Drive By Contributors". Even non-technical colleagues can edit a text file in a browser to raise a PR.
- Nothing Implicit: By design nothing is implicit and every input is explicit. We prefer powerful tools rather than "magic" tools.
uvx injinja -e home_dir="$HOME" -c 'samples/config/*' -t sql/ddl/warehouse__roles.sql.j2
# OR
uv run injinja.py -e home_dir="$HOME" -c 'samples/config/*' -t sql/ddl/warehouse__roles.sql.j2Two step templating configuration system:
- Runtime
DYNAMICconfiguration (-eor--env) - Can template the
STATICconfiguration (-cor--config) - To allow deep and rich config to populate your
TEMPLATEfile (-tor--template).
- Dynamic Configuration: Environment variables and CLI flags provide runtime values
- Static Configuration: YAML/JSON/TOML files that can themselves be Jinja templates
- Schema Validation: Validate merged configuration against schemas before templating
- Template Rendering: Apply the validated configuration to your target template
Please read our User Guide Documentation
