Skip to main content

Read value of .env(dotenv) into ENV values

Project description

firstclass-dotenv

dotenv package for python

How to install

pip install firstclass_dotenv

How to use

import os
from firstclass_dotenv import Dotenv

if __name__ == "__main__":
  dotenv = Dotenv

  # Load .env in current directory
  dotenv.load()

  # Load specified .env
  dotenv.load(".env.test")

  # print specified env value
  print(os.environ["TESTENVVALUE"])

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

firstclass_dotenv-0.0.3.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

firstclass_dotenv-0.0.3-py3-none-any.whl (3.9 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