A simple .env reader
Project description
uenv
Tiny simple .env reader.
Usage
import uenv
Why
Ever writing a Jupyter notebook and you want to use a token, where do you set it?
- write directly to the Jupyter, then it is like write secret to code. Some may git add the .ipynb file and push to GitHub
- set shell ENVIRONMENT variable, then it would need to restart the notebook every time
- read from some random file, then you may need to delete before go production.
.env
file is a popular way to handle it, put the env key=value inside it and load with some library, e.g https://github.com/theskumar/python-dotenv
Why uenv?
μenv, like utorrent.
Mu .env reader, because dotenv
name on PYPI is already taken, and https://github.com/theskumar/python-dotenv is a bit more full-features or more than too simple.
Install
pip install git+https://github.com/hvnsweeting/uenv
Or
TODO
pip install uenv
or open uenv.py then copy 5 lines of code.
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
uenv-0.0.1.tar.gz
(2.4 kB
view details)
Built Distribution
uenv-0.0.1-py3-none-any.whl
(2.7 kB
view details)
File details
Details for the file uenv-0.0.1.tar.gz
.
File metadata
- Download URL: uenv-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39bedd06ac9b228bfdeae76f419ed60c3af33c25dc1eacf932c6aa90d3147ebe |
|
MD5 | c45fa3282e99b769f263270964f96641 |
|
BLAKE2b-256 | e47a61952efb13512b2e7f7f074f2b188a27dde72440fc8c278c12f39f0c9c7a |
File details
Details for the file uenv-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: uenv-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47245ad1e088d09cd6545b1bfb579f1558ce510564303169b70a8dbc148529c4 |
|
MD5 | f5114ce68ba75d1289389988e2458efe |
|
BLAKE2b-256 | 39d470613138a64d68e0146e676ed9ab8569b33138dd0c5fe6e960bb5ca6f488 |