HBNetwork / python-decouple

Strict separation of config from code.
MIT License
2.79k stars 192 forks source link

Use dotenv for env-file parsing #145

Closed anton-v-mi closed 1 year ago

anton-v-mi commented 2 years ago

This makes it possible to write multi-line strings. Also, dotenv is the same library docker-compose uses.

algaspar commented 1 year ago

I'd like to see this. I recently had to work with RSA keys. For now, I am using both python-decouple and python-dotenv in order to have the multiline keys loaded into my settings.py. I'd rather not switch to using python-dotenv; so accepting this branch would be great.

Thanks--

Al

anton-v-mi commented 1 year ago

For now, I've published this (and also yaml support) under python-decouple-x, for easier installation: https://pypi.org/project/python-decouple-x/3.6.1/