Skip to content

lemredd/loadotenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ci

loadotenv

Reinventing the wheel to load .env variables

Requirement/s

  • Python version: >= 3.9

Installation

pip install loadotenv

Usage

From a .py file near your .env file:

from loadotenv import load_env

load_env()
# load_env(file_loc="/loc/to/.env")

For a flexible usage, use pathlib.Path when locating your .env file.

from pathlib import Path
from loadotenv import load_env

load_env(file_loc=Path(Path(__file__).resolve().parent, ".env"))

Contributing

Issues and PRs are welcome!

About

Reinventing the wheel to load .env variables

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages