/inputimeout

Multi platform standard input with timeout

Primary LanguagePythonMIT LicenseMIT

inputimeout

https://travis-ci.org/johejo/inputimeout.svg?branch=master https://ci.appveyor.com/api/projects/status/2g1fbnrcoj64g8t9?svg=true Maintainability Test Coverage

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