Skip to main content

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

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

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

MIT

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)

Source distribution for clinput 1.0.2
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

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page