Read dotenv files with python
Project description
DotENV-Reader
A Package for PiP that will read dotenv files.
How to use
Create a new .env file (will throw an error if not found, it must be in the workspace where the package was imported) Copy the code below into one of your python files to start reading a dotenv.
from dotenvreader import main as dotenv
dotenv.config() # Configuring the dotenv
print(dotenv.get_value("example")) # Returns "Example"
print(dotenv.exists("example")) # Returns "True"
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
dotenvreader-0.0.1.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for dotenvreader-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28dc5b5ec7a3035c4d0cf9fe819ebd1948a6fd85f215e6e40cff075acd78167c |
|
MD5 | 96b1ea3d4c5be87af8cc1c581647712e |
|
BLAKE2b-256 | f7475569b49d42936ccb6667e6b0d94f5ae1baff59e05d1531dbe96097c775f9 |