goldsmith / Wikipedia

A Pythonic wrapper for the Wikipedia API
https://wikipedia.readthedocs.org/
MIT License
2.89k stars 519 forks source link

Class to store configs #337

Open Siddhesh-Agarwal opened 6 months ago

Siddhesh-Agarwal commented 6 months ago

The configs for the requests are stored as global variables and through them

Global Variables

Instead of using these global variables, it would be more convenient for the users and more maintainable for the maintainers if there was a WikiConfigs class to store configurations like:

It could also combine related functions like set_lang(), set_user_agent(), and set_rate_limiting()