Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read .env files #1

sloria opened this issue Apr 26, 2016 · 1 comment


Copy link

commented Apr 26, 2016

Proposed API

env.read_env()  # searches for a .env in the file hierarchy, parses it into os.environ


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:

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.


This comment has been minimized.

Copy link
Owner Author

commented Apr 30, 2016

I've released read_env. Users should use this library to read .env file; no need to add to environs' API.

@sloria sloria closed this Apr 30, 2016

@sloria sloria added this to the 1.0.0 milestone Apr 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.