undr.constants
#
Constants used throughout the codebase.
Overview#
Attributes#
Buffer size in bytes for file reads. |
|
Sleep duration for msssage readers. |
|
Suffix indicating that a file is being decompressed. |
|
Server timeout, can be overriden in settings TOML files. |
|
Suffix indicating that a file is being downloaded. |
|
Number of index files cached by the load function. |
|
Number of samples used to smooth the speed measurement (sliding window). |
|
Below this number, files are download in one chunk instead of several to boost performance. |
|
Sleep duration for wworkers when the task queue is empty. |
Module Contents#
- undr.constants.DECOMPRESS_SUFFIX: str = '.decompress'#
Suffix indicating that a file is being decompressed.
- undr.constants.DEFAULT_TIMEOUT: float = 60.0#
Server timeout, can be overriden in settings TOML files.
- undr.constants.DOWNLOAD_SUFFIX: str = '.download'#
Suffix indicating that a file is being downloaded.
- undr.constants.SPEED_SAMPLES: int = 30#
Number of samples used to smooth the speed measurement (sliding window).