osm-quality / wikibrain

Stores knowledge and data necessary to properly use links from OpenStreetMap to Wikipedia, Wikidata and Wikimedia Commons.
MIT License
4 stars 1 forks source link

research good way to provide global configuration, specific to each deployment #2

Open matkoniecz opened 6 months ago

matkoniecz commented 6 months ago

see https://github.com/matkoniecz/wikibrain#installation

My idea with special package was silly, environmental variables seems ugly, centralized config file feels bad somehow...

Not sure what would be the best solution and why. Is there some standard solution in general? Standard for python?

Environment variables?

KasperFranz commented 6 months ago

Environment variables are always good - I can have a review

matkoniecz commented 6 months ago

I suspected this, seen them used in practice in this way.

I guess that if nothing noticeably better exists then that weird config should be replaced by reading documented environment variables (may require tracking down where it is used...).