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"])

Source code

You can find source code at https://github.com/hikarine3/firstclass_dotenv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for firstclass-dotenv, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size firstclass_dotenv-0.0.4-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size firstclass_dotenv-0.0.4.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page