This document is for an old version of Python that is no longer supported. You should upgrade and read the Python documentation for the current stable release.

# 23. Program Frameworks

The modules described in this chapter are frameworks that will largely dictate the structure of your program. Currently the modules described here are all oriented toward writing command-line interfaces.

The full list of modules described in this chapter is:

- 23.1. `cmd` — Support for line-oriented command interpreters
  - 23.1.1. Cmd Objects
- 23.2. `shlex` — Simple lexical analysis
  - 23.2.1. shlex Objects
  - 23.2.2. Parsing Rules