Tools for exconverting environment variables to native python objects
Project description
Tools for exconverting environment variables to native python objects
Quickstart
Install env-excavator:
pip install env-excavator
Example use it in a project:
>>> import os >>> import excavator as env >>> os.environ['FROM_EMAIL'] = 'admin@example.com' >>> env.get('FROM_EMAIL') 'admin@example.com' >>> os.environ['DEBUG'] = 'True' >>> env.get('DEBUG', type=bool) True >>> os.environ['ALLOWED_HOSTS'] = '.example.com,.example.net' >>> env.get('ALLOWED_HOSTS', type=list) ['.example.com', '.example.net']
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
env-excavator-1.5.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file env-excavator-1.5.0.tar.gz
.
File metadata
- Download URL: env-excavator-1.5.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aefb16fffdbfd815eb8cd8ad95e9bf81bc36c4d21e8c472f5a9239987d3e4b58 |
|
MD5 | be5d440fcebd7dcb73d7e0f20a158d2c |
|
BLAKE2b-256 | ad1d42fedccca29ce7e772b8c6b138d01019f1993cf293461d563708fd3692ed |
File details
Details for the file env_excavator-1.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: env_excavator-1.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d62cd6c939d0c60499f3b60cae13f11344beefa54f5f1c0abf074fe3599d380 |
|
MD5 | 256eafb442b97370d2664bd0a68240fe |
|
BLAKE2b-256 | be5831ee304e8f908a00763024df87e19bef391d975764a3f86e3a62ae4278b6 |