Release v0.2.1 (What’s new?).
Welcome to which_env Documentation¶
Managing multiple deployment environments (dev, staging, production) is essential for safe software delivery, but manually specifying environments leads to configuration errors and inconsistent deployments. which_env solves this by providing intelligent environment detection that adapts to your runtime context - defaulting to development locally while automatically detecting the correct environment in CI/CD pipelines and production deployments.
The library uses a simple inheritance pattern where you define your project’s environments once, then rely on smart detection logic that prioritizes user overrides while maintaining safety through validation. This eliminates environment misconfiguration bugs and streamlines deployment workflows across local development, automated testing, and production systems.
Install¶
which_env is released on PyPI, so all you need is to:
$ pip install which-env
To upgrade to latest version:
$ pip install --upgrade which-env