Skip to main content

Input with Timeout

input_with_timeout captures user input with a timeout. If the user does not respond in time, it raises TimeoutError.

Installation

pip install input-with-timeout

or with uv:

uv add input-with-timeout

Features

  • Customizable timeout for user input
  • Cross-platform support (Windows and Unix)
  • Typed public API (py.typed)
  • Compatible with Python 3.8+

Usage

from input_with_timeout import input_with_timeout

try:
    user_input = input_with_timeout("Enter your input: ", timeout=10)
    print(f"Input received: '{user_input}'.")
except TimeoutError:
    print("No input received within the timeout period.")

Use timeout=None for normal blocking input() behavior.

Contact

https://t.me/mamahoos

Metadata

Release files for input-with-timeout 2.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for input-with-timeout 2.3.1
File Size Uploaded Provenance Actions
input_with_timeout-2.3.1.tar.gz 5.6 kB Without provenance Details for input_with_timeout-2.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for input-with-timeout 2.3.1
File Interpreter ABI Platform Actions
input_with_timeout-2.3.1-py3-none-any.whl Python 3 none any Details for input_with_timeout-2.3.1-py3-none-any.whl

Total release size: 11.0 kB

Release files / input_with_timeout-2.3.1.tar.gz

Download URL input_with_timeout-2.3.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2f2c861c6cf39baf35e7be6b1c16a7067e1af989906e0e7988a76c4597fe30af
BLAKE2b-256 checksum
How to use checksums
d91b431eb22826d5f1eea33f347ef3510eb11e108bf131fbe25cfb1618691584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / input_with_timeout-2.3.1-py3-none-any.whl

Download URL input_with_timeout-2.3.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40b404ef992506fddf88b29390c7970f71f67c3d244652988c97095867346cd6
BLAKE2b-256 checksum
How to use checksums
b421ee458b14eb82e3fe331ba4e6c1143034d975c8988ad5d684d0a778722bf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for input-with-timeout 2.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page