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.2.
shlex
— Simple lexical analysissplit()
shlex
- 23.2.1. shlex Objects
shlex.get_token()
shlex.push_token()
shlex.read_token()
shlex.sourcehook()
shlex.push_source()
shlex.pop_source()
shlex.error_leader()
shlex.commenters
shlex.wordchars
shlex.whitespace
shlex.escape
shlex.quotes
shlex.escapedquotes
shlex.whitespace_split
shlex.infile
shlex.instream
shlex.source
shlex.debug
shlex.lineno
shlex.token
shlex.eof
- 23.2.2. Parsing Rules