kmd 2.2 – Interpreter Framework

A framework for building command interpreters and shells.


The kmd.Kmd class provides a simple framework for writing line-oriented command interpreters, also known as shells. These are often useful for test harnesses, prototypes, and administrative tools.

A kmd.Kmd instance is a line-oriented command interpreter. There is no good reason to instantiate kmd.Kmd itself; rather, it is used as base class for interpreter classes you define.


The kmd.completions package defines the custom completion protocol and, using the protocol, implements a set of ready-to-use completions for kmd.Kmd.

Applications may use the built-in completions and/or add their own, domain-specific completions based on code in this package.

Upstream Documentation

The standard library documentation for cmd.Cmd.

Indices and Tables

Table Of Contents

Next topic