A Python library for intelligent multi-environment deployment strategy management with automatic runtime-based environment detection.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file which_env-0.2.1.tar.gz.
File metadata
- Download URL: which_env-0.2.1.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45a6d3cf5200752eb97e31177d04354d4bade6cade5425c3d72db9643b48f1be
|
|
| MD5 |
8281441458a5b70b3032a87320e40217
|
|
| BLAKE2b-256 |
a867c000c71a4fe6025da90e8c119459f701114a46ea4f6872de25dfb4566648
|
File details
Details for the file which_env-0.2.1-py3-none-any.whl.
File metadata
- Download URL: which_env-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c92f001192e8a42b046eadcc3643f2a64e1c1d5b296385755492720e6d63bfe9
|
|
| MD5 |
855a3562098ee87e4ca85a8b908193fc
|
|
| BLAKE2b-256 |
33289b66f17442d080b0a26775eed0183fa8a3a77789e49c77f9c4dc8c93d131
|