wikibaseintegrator.wbi_config module
Config global options Options can be changed at run time. See tests/test_backoff.py for usage example
Options: BACKOFF_MAX_TRIES: maximum number of times to retry failed request to wikidata endpoint.
Default: None (retry indefinitely) To disable retry, set value to 1
- BACKOFF_MAX_VALUE: maximum number of seconds to wait before retrying. wait time will increase to this number
Default: 3600 (one hour)
- USER_AGENT: Complementary user agent string used for http requests. Both to Wikibase api, query service and others.
See: https://foundation.wikimedia.org/wiki/Policy:User-Agent_policy
- TIMEOUT: Timeout (in seconds) passed to every HTTP request, either a single value or a (connect, read) tuple.
Prevents a silent/unresponsive server from blocking the process indefinitely. Set to None to disable (wait forever). Default: (5, 300)