Skip to main content

Detect environment type and work within.

Project description

release lic ci coverage


Detect environment type and work within.


  • Environment type detection (extendable system);
  • Convenient os.environ proxying (with optional values casting into Python natives);
  • CLI for environment type probing.

Code sample

from envbox import get_environment

# Detect current environment type
# and get its object.

# Default detection sources:
# 1. ``PYTHON_ENV`` env variable
# 2. ``environment`` file contents
env = get_environment()
# >> development

# >> False

# The same as env['HOME'] and env.HOME
# >> /home/idle/

# {'UNBUFFERED': '1', 'IOENCODING': 'UTF-8', 'PATH': ...}


$ envbox probe
# >> Detected environment type: development (Development)

Note: envbox CLI requires click package available.

Project details

Download files

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

Files for envbox, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size envbox-0.1.0-py2.py3-none-any.whl (7.8 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size envbox-0.1.0.tar.gz (12.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page