Skip to main content

Table of Contents
  1. About
  2. Quick Start
  3. Usage
  4. Development
  5. Contributing
  6. License

About

useCli A powerful Python CLI framework for building beautiful, developer-friendly command-line tools. It gives you:

  • Prefix matching — Type he instead of help
  • Interactive mode — Fuzzy finder for commands
  • Auto-generated help — Clean, styled output
  • Command scaffoldingmake:command generates boilerplate
  • UI components — Prompts, menus, styled console output

(back to top)

Quick Start

Install usecli with uv (recommended)

uv add usecli

Install with pip (alternative)

pip install usecli

Initialize

usecli init

Create a command

usecli make:command hello

Your new command is ready in the commands directory:

class HelloCommand(BaseCommand):
    def signature(self) -> str:
        return "hello"

    def description(self) -> str:
        return "Say hello"

    def handle(self, name: str = Argument(..., help="Your name")) -> None:
        console.print(f"Hello, {name}!")

Run it:

usecli hello world

(back to top)

Usage

Prefix Matching

Type partial command names:

usecli he          # help
usecli ma:co       # make:command

Interactive Mode

usecli --interactive    # Fuzzy finder for all commands
usecli -i hello         # Run 'hello' command interactively

Command Groups

Colon-separated commands group automatically in help:

def signature(self) -> str:
    return "db:migrate"

Displays as:

db:
  migrate    Run migrations
  backup     Backup database

Space-separated signatures create nested subcommands:

def signature(self) -> str:
    return "spec show"   # usecli spec show

UI Components

from usecli import console, Prompt, Confirm, Menu

console.print("[green]Done![/green]")
name = Prompt.ask("Enter name")
ok = Confirm.ask("Continue?")
choice = Menu(["A", "B", "C"]).show()

Available Commands

about        Show app info
help         Show help
init         Initialize usecli (usecli only)
inspire      Random quote
make:command Create new command (usecli only)
make:theme   Create new theme (usecli only)

(back to top)

Development

See the Development Guide for setup, testing, and architecture details.

(back to top)

Contributing

Read the Contributing Guide.

Quick workflow:

  1. Fork and branch: git checkout -b feature/name
  2. Make changes
  3. Run checks: uv run poe clean-full
  4. Commit and push
  5. Open a Pull Request

(back to top)

License

MIT. See LICENSE.

(back to top)


Built by thememium

Download files

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

Source Distribution

usecli-0.1.73.tar.gz (60.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

usecli-0.1.73-py3-none-any.whl (86.2 kB view details)

Uploaded Python 3

File details

Details for the file usecli-0.1.73.tar.gz.

File metadata

  • Download URL: usecli-0.1.73.tar.gz
  • Upload date:
  • Size: 60.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for usecli-0.1.73.tar.gz
Algorithm Hash digest
SHA256 60a77e11021463b24ea40223745d5df280af90914532a6268284f31b6e9608c1
MD5 8d6671d0c06611dd7140086b075dfe65
BLAKE2b-256 e123f34770db7371328deb70516945b124d18747378245be0e717a9c58a15d87

See more details on using hashes here.

File details

Details for the file usecli-0.1.73-py3-none-any.whl.

File metadata

  • Download URL: usecli-0.1.73-py3-none-any.whl
  • Upload date:
  • Size: 86.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for usecli-0.1.73-py3-none-any.whl
Algorithm Hash digest
SHA256 de9fd5e79efa45043f43765e03ee622ebfcfc2d138c35b25361714195c921aaf
MD5 d1d1f7311d1866defbd912a97151b1fd
BLAKE2b-256 01cc56e44070e4c573e956b027106dc6e149986710d649cd0b2a673fd0a8beba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page