Skip to main content

CLI program helper/framework

Project description

npycli

A library to create fast and easy cli programs.

Programs contain either one or many commands. a command is represented by the type Command.
A program with more than one Command should use the type CLI which manages many things.

Commands can be executed by using the ()/__call__ operator, by passing in a list of arguments, and type parsers that convert a str to a specific type.
ex. {bool: lambda s: s.strip().casefold() == 'true'.strip().casefold()}: Converts str to bool.

CLI will execute a specified command when using the CLI.exec bound function. Pass in entries to the function which is a list of arguments, the first being the name of a Command.

See more documentation.

See examples:

  • And more...

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

npycli-0.5.0.tar.gz (44.5 kB view details)

Uploaded Source

Built Distribution

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

npycli-0.5.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file npycli-0.5.0.tar.gz.

File metadata

  • Download URL: npycli-0.5.0.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for npycli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 c351b93a22626e8ca086fc996409fb48bcba4cb4e75f75b3aeeb751cd03e0af3
MD5 73bd56461771808175110583e65043d3
BLAKE2b-256 3fd65169bd9eee5394200e88d969f0004f73cb0eb9f21d71eaf2174f3085631b

See more details on using hashes here.

File details

Details for the file npycli-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: npycli-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for npycli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afd122fb8215d872f7bd748bc9b4fadacb00e6049e65be10c0b96410875856a2
MD5 29ab4317473e40270dee2022d397a05c
BLAKE2b-256 670c3711823fdfe6d747cdbd953ca60cd6aaa01002f08a7b9b879f10d8d66cec

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 Pingdom Monitoring Sentry Error logging StatusPage Status page