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

Separate settings from code #3

Closed
metaperl opened this issue Sep 15, 2020 · 1 comment
Closed

Separate settings from code #3

metaperl opened this issue Sep 15, 2020 · 1 comment

Comments

@metaperl
Copy link

Instead of editing the source code to configure the program, an external file for the settings is ideal. This way, credentials never accidentally get committed. And updates to the code dont affect the credentials.

I personally like Pydantic Settings to handle settings but Dynaconf is another popular option. Configobj also deserves mention.

@AkshaySiwal
Copy link
Owner

@metaperl Code picks creds from a separate config file (parameter.py). Will add parameter.py to git ignore to avoid accidental push.
Closing this issue as this is more of a feature request.

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

No branches or pull requests

2 participants