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
Metadata
Release files for which-env 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| which_env-0.2.1.tar.gz | 11.5 kB | Without provenance | Details for which_env-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| which_env-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for which_env-0.2.1-py3-none-any.whl |
Total release size: 23.6 kB
Release files / which_env-0.2.1.tar.gz
| Download URL | which_env-0.2.1.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45a6d3cf5200752eb97e31177d04354d4bade6cade5425c3d72db9643b48f1be
|
|
BLAKE2b-256 checksum How to use checksums |
a867c000c71a4fe6025da90e8c119459f701114a46ea4f6872de25dfb4566648
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Release files / which_env-0.2.1-py3-none-any.whl
| Download URL | which_env-0.2.1-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c92f001192e8a42b046eadcc3643f2a64e1c1d5b296385755492720e6d63bfe9
|
|
BLAKE2b-256 checksum How to use checksums |
33289b66f17442d080b0a26775eed0183fa8a3a77789e49c77f9c4dc8c93d131
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.8
|
Security for which-env 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.