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:

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.2.0.tar.gz (23.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.2.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for npycli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fdb93ad7864c533f3e976911629dec2969fc9b6db767cc45ef8985aacefedd01
MD5 9d890e57de87779728588126eedcd591
BLAKE2b-256 6f6c5cc72be6662cb20c9eb6339f36d92694079d7373f7299bad25e06c0ce13e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for npycli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93bd502768f851dfe0618a829f5e61bf62ad9e7b0bc1451c2126cd961d1a7520
MD5 9bf203fe532b3dd93fc9289b91a2cf60
BLAKE2b-256 ea7747cad07ccbfc17e05ce40e12243874a1829fc6577f5e00d2bb6355de1dd3

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