resilient_exporters
The resilient_exporters package provides data exporters designed to be
resilient to peak utilisation and Internet connection disruptions.
Install:
$ pip install resilient-exporters
-
resilient_exporters.pool = <resilient_exporters.exporters.exporter_pool.ExporterPool object>
Default, ready to use pool of exporter, which uses a file for data storage
-
resilient_exporters.utils.generate_rand_name() → str[source]
Generate a random name of the form “export_XXXXXX” where XXXXXX are
6 random characters.
- Returns
the generated name
- Return type
str
-
resilient_exporters.utils.is_able_to_connect(url: Optional[str] = None) → bool[source]
Runs a HTTP GET request to the url.
- Parameters
url (str) – an URL (with its schema)
- Returns
- if a ConnectionError or Timeout are raised, returns False.
True, otherwise.
- Return type
bool