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

Closed
sloria opened this issue Apr 26, 2016 · 1 comment
Closed

Read .env files #1

sloria opened this issue Apr 26, 2016 · 1 comment
Milestone

Comments

@sloria
Copy link
Owner

sloria commented Apr 26, 2016

Proposed API

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

Considerations

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.

@sloria
Copy link
Owner Author

sloria 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant