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:
turtle— Turtle graphics- Introduction
- Get started
- Tutorial
- How to…
- Turtle graphics reference
- Methods of RawTurtle/Turtle and corresponding functions
- Methods of TurtleScreen/Screen and corresponding functions
- Public classes
- Explanation
- Help and configuration
turtledemo— Demo scripts- Changes since Python 2.6
- Changes since Python 3.0
cmd— Support for line-oriented command interpretersCmd- Cmd Objects
Cmd.cmdloop()Cmd.do_help()Cmd.onecmd()Cmd.emptyline()Cmd.default()Cmd.completedefault()Cmd.columnize()Cmd.precmd()Cmd.postcmd()Cmd.preloop()Cmd.postloop()Cmd.promptCmd.identcharsCmd.lastcmdCmd.cmdqueueCmd.introCmd.doc_headerCmd.misc_headerCmd.undoc_headerCmd.rulerCmd.use_rawinput
- Cmd Example
shlex— Simple lexical analysissplit()join()quote()shlex- shlex Objects
shlex.get_token()shlex.push_token()shlex.read_token()shlex.sourcehook()shlex.push_source()shlex.pop_source()shlex.error_leader()shlex.commentersshlex.wordcharsshlex.whitespaceshlex.escapeshlex.quotesshlex.escapedquotesshlex.whitespace_splitshlex.infileshlex.instreamshlex.sourceshlex.debugshlex.linenoshlex.tokenshlex.eofshlex.punctuation_chars
- Parsing Rules
- Improved Compatibility with Shells