Skip to main content

toolcli makes it easy to create structured hierarchical cli tools

Project description

toolcli

toolcli makes it simple to create modular command line interfaces

the main usecase for toolcli is allowing many cli subcommands to be defined across many files in a performant way

toolcli uses argparse under the hood, making it easy to transition from argparse to toolcli when a project is ready to scale to multiple subcommands or multiple files

Features

  • lazy loading of files for fast startup times
  • is agnostic to synchronous functions or async functions
  • uses rich for colorized help output
  • uses argparse under the hood for parsing arguments
  • no user-facing objects, just simple functions
  • built-in support for common subcommands like help, cd, and version
  • can use middleware before and/or after main command execution (e.g. for logging or additional context injection)

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

toolcli-0.6.8.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

toolcli-0.6.8-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

Details for the file toolcli-0.6.8.tar.gz.

File metadata

  • Download URL: toolcli-0.6.8.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for toolcli-0.6.8.tar.gz
Algorithm Hash digest
SHA256 cb56956b6215a227c8801c7a03689d9ef1fb63a482423d56e49cd4f46b30945f
MD5 009aeaf25b9c764179f8205d42c57625
BLAKE2b-256 950bed5c0e9085ae14116c76cb5a71495dfafb295f0eedb990273b6fd1fafe9f

See more details on using hashes here.

File details

Details for the file toolcli-0.6.8-py3-none-any.whl.

File metadata

  • Download URL: toolcli-0.6.8-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for toolcli-0.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c19f444c82b908642a6f4165280e6b36654018bb377a9951d79ad42143a745bf
MD5 7e271d1a4454a0e58980d817604082df
BLAKE2b-256 39cdb49ae47fea79c2d683c265308ef731888c90d11234cdd258a8d3f0cdc234

See more details on using hashes here.

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