Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cly_why-0.3.7.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

cly_why-0.3.7-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page