Home¶
A pyrig plugin that contributes a .env file.
Overview¶
Drop-in pyrig plugin that gives your
project a managed .env file for local environment variables and secrets:
- Creates an empty
.envfile if one is missing, and never reads or rewrites it afterward — you own its contents entirely. - Excludes
.envfrom version control automatically, so secrets are never committed.
No configuration required — installing the package as a development dependency is the whole setup. Then regenerate your pyrig configs as usual and the plugin's config file is picked up automatically.
Installation¶
How it works¶
The plugin subclasses one pyrig base class:
DictConfigFile(asEnvConfigFile) to declare the project's.envfile. pyrig's cross-package subclass discovery finds this config duringsyncand creates an empty.envif it does not already exist._load()and_dump()are overridden to refuse to read or write real content, andis_correct()is overridden to check only for the file's existence, so its contents are never touched once created.
API Reference¶
For class- and method-level details, see the API Reference, generated automatically from the source.