Skip to main content

Multi platform standard input with timeout

Project description

https://travis-ci.org/johejo/inputimeout.svg?branch=master https://ci.appveyor.com/api/projects/status/2g1fbnrcoj64g8t9?svg=true https://img.shields.io/pypi/v/inputimeout.svg https://img.shields.io/github/license/mashape/apistatus.svg Maintainability Test Coverage https://codecov.io/gh/johejo/inputimeout/branch/master/graph/badge.svg

Description

Multi platform standard input with timeout

Install

$ pip install inputimeout

Usage

from inputimeout import inputimeout, TimeoutOccurred
try:
    something = inputimeout(prompt='>>', timeout=5)
except TimeoutOccurred:
    something = 'something'
print(something)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

inputimeout-1.0.4-py3-none-any.whl (4.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page