powercmd

A generic framework to build typesafe line-oriented command interpreters


License
MIT
Install
pip install powercmd==0.3.6

Documentation

powercmd

An extension of the standard cmd module (https://docs.python.org/3.5/library/cmd.html) that uses type annotations to ensure type-safety of defined commands.

Requires Python 3.5+.

Features

  • automatic conversion of user input into types specified in annotations
  • intelligent (and customizable!) argument tab-completion
  • prefix, snake-case-prefix and fuzzy command matching