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.

Source Distribution

firstclass_dotenv-0.0.8.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

firstclass_dotenv-0.0.8-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file firstclass_dotenv-0.0.8.tar.gz.

File metadata

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

File hashes

Hashes for firstclass_dotenv-0.0.8.tar.gz
Algorithm Hash digest
SHA256 b3ccae4922799ab07e4e4f7e2a2746f76f909eb01e37d99bb39f88f2432b91e9
MD5 52f94dbb8ecaee645acdacc2f82348be
BLAKE2b-256 614b09919647cadaefecff956d1b1291114b00e4d73e0b1ca0075c47d855ad3e

See more details on using hashes here.

File details

Details for the file firstclass_dotenv-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for firstclass_dotenv-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2c31a3dfda4e00fe43a9c1a77ce41fed616360b5ff3b7ea65b33a4a294f67220
MD5 4340b9fe24191fdbf7505d4692ba40f1
BLAKE2b-256 44c14f9145e088973fb75c01b1af4b9fd4ea1660c0f56d9ec27d05c710af8405

See more details on using hashes here.

Supported by

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