Skip to main content

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.

Source Distribution

clinput-1.0.2.tar.gz (4.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page