|
Book details / order |
PROGRAMMING PYTHON, 4TH EDITION |
The beginning
chapter 1 a sneak preview
“programming python: the short story”
the task
step 1: representing records
step 2: storing records persistently
step 3: stepping up to oop
step 4: adding console interaction
step 5: adding a gui
step 6: adding a web interface
the end of the demo
system programming
chapter 2 system tools
“the os.path to knowledge”
system scripting overview
introducing the sys module
introducing the os module
chapter 3 script execution context
“i’d like to have an argument, please”
current working directory
command-line arguments
shell environment variables
standard streams
chapter 4 file and directory tools
“erase your hard drive in five easy steps!”
file tools
directory tools
chapter 5 parallel system tools
“telling the monkeys what to do”
forking processes
threads
program exits
interprocess communication
the multiprocessing module
other ways to start programs
a portable program-launch framework
other system tools coverage
chapter 6 complete system programs
“the greps of wrath”
a quick game of “find the biggest python file”
splitting and joining files
generating redirection web pages
a regression test script
copying directory trees
comparing directory trees
searching directory trees
visitor: walking directories “++”
playing media files
automated program launchers (external)
gui programming
chapter 7 graphical user interfaces
“here’s looking at you, kid”
python gui development options
tkinter overview
climbing the gui learning curve
tkinter coding alternatives
adding buttons and callbacks
adding user-defined callback handlers
adding multiple widgets
customizing widgets with classes
reusable gui components with classes
the end of the tutorial
python/tkinter for tcl/tk converts
chapter 8 a tkinter tour, part 1
“widgets and gadgets and guis, oh my!”
configuring widget appearance
top-level windows
dialogs
binding events
message and entry
checkbutton, radiobutton, and scale
running gui code three ways
images
viewing and processing images with pil
chapter 9 a tkinter tour, part 2
“on today’s menu: spam, spam, and spam”
menus
listboxes and scrollbars
text
canvas
grids
time tools, threads, and animation
the end of the tour
chapter 10 gui coding techniques
“building a better mousetrap”
guimixin: common tool mixin classes
guimaker: automating menus and toolbars
shellgui: guis for command-line tools
guistreams: redirecting streams to widgets
reloading callback handlers dynamically
wrapping up top-level window interfaces
guis, threads, and queues
more ways to add guis to non-gui code
the pydemos and pygadgets launchers
chapter 11 complete gui programs
“python, open source, and camaros”
pyedit: a text editor program/object
pyphoto: an image viewer and resizer
pyview: an image and notes slideshow
pydraw: painting and moving graphics
pyclock: an analog/digital clock widget
pytoe: a tic-tac-toe game widget
where to go from here
internet programming
chapter 12 network scripting
“tune in, log on, and drop out”
python internet development options
plumbing the internet
socket programming
handling multiple clients
making sockets look like files and streams
a simple python file server
chapter 13 client-side scripting
“socket to me!”
ftp: transferring files over the net
transferring files with ftplib
transferring directories with ftplib
transferring directory trees with ftplib
processing internet email
pop: fetching email
smtp: sending email
email: parsing and composing mail content
a console-based email client
the mailtools utility package
nntp: accessing newsgroups
http: accessing websites
the urllib package revisited
other client-side scripting options
chapter 14 the pymailgui client
“use the source, luke”
major pymailgui changes
a pymailgui demo
pymailgui implementation
ideas for improvement
chapter 15 server-side scripting
“oh, what a tangled web we weave”
what’s a server-side cgi script?
running server-side examples
climbing the cgi learning curve
saving state information in cgi scripts
the hello world selector
refactoring code for maintainability
more on html and url escapes
transferring files to clients and servers
chapter 16 the pymailcgi server
“things to do when visiting chicago”
the pymailcgi website
the root page
sending mail by smtp
reading pop email
processing fetched mail
utility modules
web scripting trade-offs
tools and techniques
chapter 17 databases and persistence
“give me an order of persistence, but hold the pickles”
persistence options in python
dbm files
pickled objects
shelve files
the zodb object-oriented database
sql database interfaces
orms: object relational mappers
pyform: a persistent object viewer (external)
chapter 18 data structures
“roses are red, violets are blue; lists are mutable, and so is set foo”
implementing stacks
implementing sets
subclassing built-in types
binary search trees
graph searching
permuting sequences
reversing and sorting sequences
pytree: a generic tree object viewer
chapter 19 text and language
“see jack hack. hack, jack, hack”
strategies for processing text in python
string method utilities
regular expression pattern matching
xml and html parsing
advanced language tools
custom language parsers
pycalc: a calculator program/object
chapter 20 python/c integration
“i am lost at c”
extending python in c: overview
a simple c extension module
the swig integration code generator
wrapping c environment calls
wrapping c++ classes with swig
other extending tools
embedding python in c: overview
basic embedding techniques
registering callback handler objects
using python classes in c
other integration topics
the end
chapter 21 conclusion: python and the development cycle
“that’s the end of the book, now here’s the meaning of life”
“something’s wrong with the way we program computers”
the “gilligan factor”
doing the right thing
enter python
but what about that bottleneck?
on sinking the titanic
“so what’s python?”: the sequel
in the final analysis…
colophon
Author : Mark lutz
Publication : Oreilly
Isbn : 9789350232873
Store book number : 104
NRS 3360.00
|
 |
|
|
|
|
|
|
|
|