Clinput
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.
Contents
Installation
Install using pip:
pip install clinput
Usage
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: ")
or:
import clinput.single as clim
# example use:
input_vars = clim.positive("Enter a list of positive number inputs: ")
Documentation
Documentation can be found at Read the Docs.
Contributing
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.
Testing
Tests are run using pytest.
License
Metadata
Release files for clinput 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clinput-1.0.2.tar.gz | 4.4 kB | Details |
Release files / clinput-1.0.2.tar.gz
| Download URL | clinput-1.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
981081123ad02fe53721aa4484bda626e01cb34f4959a23aefcd89431aa6433c
|
|
BLAKE2b-256 checksum How to use checksums |
50d85825243f132d8a80bee9063ca22d87c6bdbb55a0c47f2b3518556339261c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
|