Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Useful command line input functions with error checking.

Project description


Clinput is an importable python package that contains tools to create command line user inputs with data type conversion, syntax checking and customizable error messages. Syntactically, the functions in this package are similar to Python default input function, with a variety of optional arguments to provide customizable performance.


  1. Installation
  2. Usage
  3. Documentation
  4. Contributing
  5. Testing
  6. License


Install using pip:

pip install clinput


It is recommended to import each of single and multi separately (to avoid confusion) as follows:

import clinput.single as clis

# example use:
input_var = clis.positive("Enter a positive number: ")


import clinput.single as clim

# example use:
input_vars = clim.positive("Enter a list of positive number inputs: ")


Documentation can be found at Read the Docs.


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.


Tests are run using pytest.



Project details

Download files

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

Files for clinput, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size clinput-1.0.2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page