Skip to main content

Nessaid's CLI tools

Project description

Nessaid CLI Framework

This package implements a grammar specification and tools to compile the grammar and use it for driving CLIs. The CLI commands can be expressed in grammar with the support for custom tokens with suggestion and autocompletion.

The grammar specification is parsed with PLY python package and the CLI objects are implemented on top of readline. The command loop is in async mode.

Requirements

asyncio: The commandline interpreter will be looping for console input in async mode

ply: The lex-yacc like implementation of python. Will be used for parsing the grammar specification and tokenizing the line input

pyreadline: For windows platforms. This is the readline implementation for windows platforms Enduser Utilities

This package provides two classes for CLI building. NessaidCmd is intended to work like the standard Cmd class for simple CLI designs. It is a stripped down sub class of the more robest NessaidCli class.

NessaidCmd: The basic Cmd like tool for end user. The CLI command handlers are defined as python methods with chosen prefix and the grammar definitions to drive them are expressed as the method docstring.

NessaidCli: The generic base class for the CLI impelemntation. NessaidCmd is the stripped down version as an alternative for the default Cmd implementation

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

nessaid_cli-2.2.0.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

nessaid_cli-2.2.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file nessaid_cli-2.2.0.tar.gz.

File metadata

  • Download URL: nessaid_cli-2.2.0.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.1

File hashes

Hashes for nessaid_cli-2.2.0.tar.gz
Algorithm Hash digest
SHA256 e49a22f5de16b6c6d952baeb199da6dcd0898e8887df2de26ec3dee7603c0f4a
MD5 f9b611424d6bd3b92ee3d8179c44b75b
BLAKE2b-256 c7ed25cd304817e84b88a239885353fdc4e56e3afd3f2f6c8582a587c6344fb1

See more details on using hashes here.

File details

Details for the file nessaid_cli-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: nessaid_cli-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.1

File hashes

Hashes for nessaid_cli-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82ff4992d5f346420eeef90153a77490f5bbb94ebaa3c2a2f74b5706b1731392
MD5 26419f902104b3116de3bd03d8289d31
BLAKE2b-256 92a1273df907843b4ea2f38baf73dc798826aeb5c671d7614520f2f21b8d583b

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