$npx skillfedfor your agent

python-timeout

Random timeout between minimum and maximum values

With conditionsPyPI UtilitiesReleased Jun 2026144.3K downloads / moSource build

Decision gist · record as of 2026-08-14

sdist only — python_timeout-2026.6.30.tar.gz · builds from source
v2026.6.30 · released 2026-06-30

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseNot declared unclear
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceActively maintained 45 days since the last release
Last repo commit
First released
Downloads144,325 / month, #11,155 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: python_timeout-2026.6.30.tar.gz

Tags

Capabilities
random timeout generatorsleep with random delaytime-based sleep functiontimeout between min and maxscheduled sleep timer
Topics
timing-utilitiestesting-helpers

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

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.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

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.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

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.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

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.

MITpure Python
1.2Bdownloads / mo

See also retry · asyncsleepiq · timeout-sampler · win-precise-time · random-password-generator · pytimeparse · monotonic · pytest-loop · eth-retry · retry2