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-4.1.0.tar.gz (46.7 kB view details)

Uploaded Source

Built Distributions

nessaid_cli-4.1.0-py3.8.egg (116.6 kB view details)

Uploaded Source

nessaid_cli-4.1.0-py3-none-any.whl (46.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nessaid_cli-4.1.0.tar.gz
Algorithm Hash digest
SHA256 c608dc1bdae41225dc723864d9a51e404115b3a8ae73b2b142d11002fe337b3e
MD5 0b0175d3a1e3b90daad73207e87df7d7
BLAKE2b-256 908e80e303bb2db06ffc4409f44957fac13135dd3cf73b1e7b2a933f9fe5218f

See more details on using hashes here.

File details

Details for the file nessaid_cli-4.1.0-py3.8.egg.

File metadata

  • Download URL: nessaid_cli-4.1.0-py3.8.egg
  • Upload date:
  • Size: 116.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.1

File hashes

Hashes for nessaid_cli-4.1.0-py3.8.egg
Algorithm Hash digest
SHA256 6261df316b6ba8ca6d3346b44e7cbc22faea19e1c12751f52a227a39c17bf560
MD5 06cb56074d3f3aecca4c920bd6acd6f9
BLAKE2b-256 ecae2ad79ec9f916908f283eb8cc19513ce67665ca418f811eeacf20fee0a367

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nessaid_cli-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6f6ebb6da9bf9754bbb7967b40d05e42fe4a1de953c30e0dd4c3e4b3894eb98
MD5 1edab9b44b4f52aee562294bbfc5ab33
BLAKE2b-256 36445ee251613c7a6e89ffe2b685814ae287a84113344cec964c4536a3ae4f27

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