Skip to main content

A Python library for intelligent multi-environment deployment strategy management with automatic runtime-based environment detection.

Project description

Documentation Status https://github.com/MacHu-GWU/which_env-project/actions/workflows/main.yml/badge.svg https://codecov.io/gh/MacHu-GWU/which_env-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/which-env.svg https://img.shields.io/pypi/l/which-env.svg https://img.shields.io/pypi/pyversions/which-env.svg https://img.shields.io/badge/✍️_Release_History!--None.svg?style=social&logo=github https://img.shields.io/badge/⭐_Star_me_on_GitHub!--None.svg?style=social&logo=github
https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to which_env Documentation

https://which-env.readthedocs.io/en/latest/_static/which_env-logo.png

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

which_env-0.1.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

which_env-0.1.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file which_env-0.1.1.tar.gz.

File metadata

  • Download URL: which_env-0.1.1.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for which_env-0.1.1.tar.gz
Algorithm Hash digest
SHA256 538f0d1de3badc4d4b00cf0545402b4e0cb1d41e72fcc10df24cb62591bdc0d0
MD5 13cd11d30a9ee01e8a66223cf0864c74
BLAKE2b-256 7848c8be9f945efc27a59a1df9f0f1ad6e116b41647ce6809cf8ea1432cc3bd3

See more details on using hashes here.

File details

Details for the file which_env-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: which_env-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for which_env-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9938ed4017aee952dd67031e7fe37aa8f16921201bb603eaa70bdf67d4f04ef4
MD5 8589adb75a3425dfa1fbbb725b94343a
BLAKE2b-256 8b5f5e16fa9e83a3238e65dbee62ce6fd45e7144db9eaea13e4cec6e2036110c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page