-
Notifications
You must be signed in to change notification settings - Fork 102
Read .env files #1
Copy link
Copy link
Closed
Labels
Milestone
Description
Proposed API
env.read_env() # searches for a .env in the file hierarchy, parses it into os.environConsiderations
This is already implemented by envparse and django-environ (it's hard to tell, but I think original credit goes to the author of this gist: https://gist.github.com/bennylope/2999704).
I'm hesitant to just copy and paste the implementation from one of these sources into this library. I'm more inclined to release a separate library and just import that library here. That way, other libraries could reuse this code. Also, users may want to read .env files without having to use environs, envparse, etc.
Reactions are currently unavailable