python-timeout
Random timeout between minimum and maximum values
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- No Python version requirement is specified in the package metadata; verify compatibility with your target Python version before use.
- High install friction: the package is distributed as a source tarball with no pre-built wheels, requiring compilation or setup.py execution on install.
- Maintenance is active with a recent release 45 days ago, but the repository has zero stars and no documented Python version requirements.
License · maintenance · safety
(unclear) — License status is unclear—no SPDX identifier or raw license text is declared. Users should verify the actual license terms in the repository before adopting this package for production use.
last release 2026-06-30 (45 days) · last repo commit 2026-07-01
0 known vulnerabilities (OSV.dev, 2026-08-14) · 144,325 downloads/mo, #11,155 on PyPI
Alternatives
Verify before relying
pip install python-timeout
from timeout import random_timeout, sleep
random_timeout(10, 20) # Random timeout between 10 and 20 seconds
sleep(5) # Sleep for five seconds- Whether the package supports modern Python versions (3.8+) is not documented in the metadata.
- The actual license under which the package is distributed is not declared in PyPI metadata.
- Whether random_timeout blocks execution or returns a value is not clear from the description excerpt.
What it is and 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.
The 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
python-timeout on PyPI
Before you install
High install friction: the package is distributed as a source tarball with no pre-built wheels, requiring compilation or setup.py execution on install. Maintenance is active with a recent release 45 days ago, but the repository has zero stars and no documented Python version requirements.
No Python version requirement is specified in the package metadata; verify compatibility with your target Python version before use.
License in practice
License status is unclear—no SPDX identifier or raw license text is declared. Users should verify the actual license terms in the repository before adopting this package for production use.
Quickstart
pip install python-timeout
from timeout import random_timeout, sleep
random_timeout(10, 20) # Random timeout between 10 and 20 seconds
sleep(5) # Sleep for five seconds
Verify before relying
- Whether the package supports modern Python versions (3.8+) is not documented in the metadata.
- The actual license under which the package is distributed is not declared in PyPI metadata.
- Whether random_timeout blocks execution or returns a value is not clear from the description excerpt.
Package facts
| License | Not declared unclear |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Actively maintained 45 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 144,325 / month, #11,155 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: python_timeout-2026.6.30.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “random timeout generator”
- python-timeoutGenerates random timeouts between specified minimum and maximum…
- coolnameGenerates random human-readable names and URL-safe slugs with…
- petnameGenerates random, pronounceable names by combining adverbs,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also retry · asyncsleepiq · timeout-sampler · win-precise-time · random-password-generator · pytimeparse · monotonic · pytest-loop · eth-retry · retry2