Skip to main content

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


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)

Uploaded Source

Built Distribution

dotenvreader-0.0.1-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

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