A super simple functional cli helper lib
Project description
Why?
I wanted a simple library to write small to moderate cli programs. It only uses the standard library.
Why not X?
X = argparse
Its way more then what I need 99% of the time.
X = click
I don't particularly like decorators.
X = rich
I like pprint, but it always seems like to much
X = typer
I've used typer a bit, but it never clicked with me.
Core Functions
Text-Decorate and Colorize
Take a string and color/text-decoration name and returns the string wrapped in its ansi code
Cly
Entrypoint function By default ignores functions that start with '_'/underscore
Feature List
- Colorize and Text Decorate
- Tests
- Automatic Fish Shell Completions
- Prompts
- Text Prompt
- Multiline Prompt
- Fzf Selector
- Date Selector
- 2 line functionality
import cly_why
if __name__ == "__main__":
cly_why.cly()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cly_why-0.3.12.tar.gz.
File metadata
- Download URL: cly_why-0.3.12.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.10.9 Linux/6.1.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ed4509b2d31a14fc303d6fb7592a1168b7d1b68038c05ffce0083a9de5ba4d9
|
|
| MD5 |
8bf1373558e76c8f1b0c392d27062687
|
|
| BLAKE2b-256 |
4c500861fe6d645bbb5a0471b99b9af2f14322f39fa6e4c406c1cdb3d8752eeb
|
File details
Details for the file cly_why-0.3.12-py3-none-any.whl.
File metadata
- Download URL: cly_why-0.3.12-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.10.9 Linux/6.1.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ed04583701407a222bee411c85e41944d3b97f8f7a9cc81c2ef65d50eb0332c
|
|
| MD5 |
eec524a0a257c7b873d5793b5de99a9e
|
|
| BLAKE2b-256 |
8d1ddd646c921e8a62bbb44a40523cc9c3027f7902f7bfaf41fc137ab5ae43aa
|