Skip to main content

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
KEY1=value
KEY2=123
KEY3=true
# main.py
from dotenvplus import DotEnv

# Create a DotEnv object
env = DotEnv()
>>> <DotEnv data={"KEY1": "value", "KEY2": 123, "KEY3": True}>

# Call it like a dictionary
(env["KEY1"], env["KEY2"], env["KEY3"])
>>> ("value", 123, True)

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

dotenvplus-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

dotenvplus-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file dotenvplus-0.0.2.tar.gz.

File metadata

  • Download URL: dotenvplus-0.0.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for dotenvplus-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b58fe8c720119ecdfc65f05b154dfc1e6421e5dace8f603e3d073ab5340b401d
MD5 9a64e80475f4e8fe26067ae24eef5004
BLAKE2b-256 176b3a0bbdf5edb29332dbe78a558b1a3fac9f31cee4b27eba805c14b1cefc5c

See more details on using hashes here.

File details

Details for the file dotenvplus-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dotenvplus-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for dotenvplus-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e42f408637233ed643e2582a2f9fbe07f289720ac69151086305ff975c927c
MD5 7a85af3a4144f13468d023c9382012c8
BLAKE2b-256 ea02bac6130623af27bd7d340615956f8458d1d828112dabb9d867268fecb231

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page