Python library that handles interactions from Discord POST requests.
Project description
dotenvplus
Reads key-value pairs from a .env file and supports multiple values with dynamic interpolation.
The values returned by the DotEnv object is treated like a dictionary, so you can use it like a normal dictionary.
Some of the usual dictionary methods are also supported like .items()
, .keys()
, .values()
, etc.
Goal is to make it easy to use environment variables in your code, while also supporting multiple values.
Installing
You need Python >=3.6 to use this library.
pip install dotenvplus
Usage
# .env
KEY=value
# main.py
from dotenvplus import DotEnv
# Create a DotEnv object
env = DotEnv()
Call it like a dictionary
env["KEY"]
>>> "value"
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
dotenvplus-0.0.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for dotenvplus-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3bdf318acb3fbdc72ec8aff9e86f2e9168e4810262952e0a6cd326598f212e7 |
|
MD5 | 8cd71123362452420a07abc2f3bfa157 |
|
BLAKE2b-256 | 275bf201bae9e33fed69346da3e6e7961110c7b59ca91cf7cf2d583e176c4426 |