{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/9"}],"enrichment":{"capability":"Generates random timeouts between specified minimum and maximum values, and provides time-aware sleep functions with optional active-time windows.","skillfed_tags":["timing-utilities","testing-helpers"],"use_cases":["Implement exponential backoff with randomization in retry logic for network requests or API calls.","Add jitter to scheduled tasks to avoid thundering-herd problems when many processes wake simultaneously.","Build time-gated features that only run during specific hours (e.g., maintenance windows or business hours).","Test timeout and delay behavior in unit tests without hardcoding fixed sleep durations."],"what_it_does":"python-timeout provides utilities for generating random delays and time-aware sleep operations. It offers two main features: random_timeout() generates a random duration between specified bounds (in seconds, minutes, hours, or days), and sleep() pauses execution for a given duration with similar time-unit flexibility. Additionally, SleepTimer allows you to define active time windows and check whether the current time falls within them.\n\nThe package has no runtime dependencies, making it lightweight to install. However, it ships only as a source distribution, which means your system must be able to build it during installation. The license is undeclared, and Python version support is unspecified, creating uncertainty about compatibility and legal terms.","worth_installing":"Yes, with conditions. The package is lightweight and actively maintained, but the high install friction (source-only distribution), undeclared license, and unspecified Python version support create friction. Install only if you need random timeout generation and can verify the license and Python compatibility in the repository. For simple use cases, consider whether implementing random.uniform() directly meets your needs."},"id":"python-timeout","links":{"html":"https://skillfed.io/packages/python-timeout","md":"https://skillfed.io/packages/python-timeout.md","pypi":"https://pypi.org/project/python-timeout/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-30","license_spdx":null,"license_treatment":"unclear","name":"python-timeout","python_support":"unspecified","summary":"Random timeout between minimum and maximum values"},"popularity":{"monthly_downloads":144325,"position":11155,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2026.6.30"}
