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.4.0.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file env-excavator-1.4.0.tar.gz
.
File metadata
- Download URL: env-excavator-1.4.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b087fb2faf0485630ff9a8201823a70b85af5794e8e7ddfd8d69151c21a718c1 |
|
MD5 | cdd723ac6ef203c22598b6f5ddf2e67c |
|
BLAKE2b-256 | d5a990ad28a3896341db4e314bfb33e530b3f4ea602af055975e24132ea778ac |
File details
Details for the file env_excavator-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: env_excavator-1.4.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 | 0694d6b784aaed17bb44f9b705a693da7f16b4c82b11a103f60d8bc51f24a87b |
|
MD5 | ad434232c995e71ffb7c478c67c57775 |
|
BLAKE2b-256 | 40515724cd8a54dea39a75ccb6269cd2a219e4cfbe0127837b3adda796c85273 |