impresso / impresso-pycommons

Python module with bits of code (objects, functions) highly reusable within impresso.
http://impresso-pycommons.rtfd.io/
GNU Affero General Public License v3.0
3 stars 3 forks source link

make it dotenv aware #84

Closed simon-clematide closed 4 months ago

simon-clematide commented 4 months ago

Make the package .env aware. Helps to keep configuration variables in .env files that can have documented sample configuration files in the git repo, but being flexible to set to local values within the project and not rely on specific user environment configuration. See https://configu.com/blog/using-py-dotenv-python-dotenv-package-to-manage-env-variables/

from dotenv import load_dotenv
load_dotenv()
simon-clematide commented 4 months ago

@piconti Which branch would be good to create a pull request?

piconti commented 4 months ago

The easiest is probably the current master branch, I can then merge the updates and changes into my versioning branch. Does that seem good to you?