Awesome CLI input and output functions for Python 3.x scripts.
Project description
cli-fragments
Awesome terminal input and output functions for Python 3.x scripts.
Why this name?
I like to consider the command-line interface as if it were a graphical interface. In the development of graphical interfaces, 'components' are usually used to facilitate maintainability and design consistency. In my opinion, the word 'fragments' is a correct synonym to describe the same approach, but for command-line interfaces.
Fragments
error
: a red message having[✕]
as prefixsuccess
: a green message having[✓]
as prefixwarning
: a yellow message having[!]
as prefixtext
: a standard text in terminal having the proper paddingdebug
: a default color message having[#]
as prefixnotice
: a blue message having[~]
as prefixask
: a qustion to the user having[?]
as prefix. The input value can be optionally validated passing avalidator
callback
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 Distribution
cli_fragments-1.0.0.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for cli_fragments-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3255d09096c4cbf048e5f3a3407d2e51fcdaddce2d1b365a9b3c6a7691a40866 |
|
MD5 | d234942feffeb7c6b16390012dfdae5f |
|
BLAKE2b-256 | 6757eb8f765084cff1a4df3eb44baa23066e4b228f1da86080d3ba20d3c56f29 |