Common CLI input helper functions and string/arg conversions
Project description
Install
% pip install input-helper
Usage
% ipython ... In [1]: import input_helper as ih In [2]: real_args = ih.string_to_set('arg1, arg2, arg3') In [3]: real_val = ih.from_string('true') In [4]: response = ih.user_input('type some input, human') In [5]: selected = ih.make_selections(list_of_items) In [6]: seconds = ih.timestamp_to_seconds('1h22m33s')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for input_helper-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e318cc47a4df4af3a13c8ecafa50740b853eae6e168bf5cf9b090898f7655ece |
|
MD5 | f5da95ef73e7828ee5e4d041bd215036 |
|
BLAKE2b-256 | 5eb2c35c3e6ff5a422f28e4d2c82442608c1ea233a281bcd03cbc753fd9d7b4b |