Safari | Python Developer's Handbook -> Python Scripts
152015024128143245168232148039196038240039088173205162105045222218065012137085045216133
Python Scripts
The Python distribution comes with lots of scripts that you can study and use. Those scripts are stored in two directories: \Tools and \Demos.
Table 17.1 lists programs that are stored in the \ Tools directory.
Table17.1. Programs Stored in the Tools Directory
Program
|
Description
|
bgen |
Generates complete extension modules from a description (under development). |
faqwiz |
FAQ Wizard. |
freeze |
Creates a standalone executable from a Python program. |
modulator |
Interactively generates a boiler plate for an extension module. Works easiest if you have Tk. |
Pynche |
The PYthonically Natural Color and Hue Editor. |
versioncheck |
Checks whether you have the latest version of a specific package. |
webchecker |
Checks Web sites for bad links. |
The \Tools\Scripts subdirectory contains a number of useful single-file programs. They are shown in Table 17.2.
Table17.2. Programs Stored in the Tools\ Scripts Directory
Program
|
Description
|
byteyears |
Prints the product of a file's size and age |
checkpyc |
Checks presence and validity of .pyc files |
classfix |
Converts old class syntax to new |
copytime |
Copies one file's atime and mtime to another |
crlf |
Changes CRLF line endings to LF (Windows to UNIX) |
cvsfiles |
Prints a list of files that are under CVS |
dutree |
Formats du output as a tree sorted by size |
eptags |
Creates Emacs TAGS file for Python modules |
findlinksto
|
Recursively finds symbolic links to a given path prefix
|
fixcid
|
Massive identifier substitution on C source files |
fixheader
|
Adds some cpp magic to a C include file |
fixnotice
|
Fixes the copyright notice in source files |
fixps
|
Fixes Python scripts'first line (if #!)
|
ftpmirror
|
FTP mirror script |
h2py
|
Translates #defines into Python assignments
|
ifdef
|
Removes #if(n)def groups from C sources
|
lfcr
|
Changes LF line endings to CRLF (UNIX to Windows) |
linktree
|
Makes a copy of a tree with links to original files |
lll
|
Finds and lists symbolic links in current directory |
logmerge
|
Consolidates CVS/RCS logs read from stdin |
mailerdaemon
|
Parses error messages from mailer daemons |
methfix
|
Fixes old method syntax def f(self, (a1, ..., aN)):
|
mkreal
|
Turns a symbolic link into a real file or directory |
ndiff
|
Intelligent diff between text files |
nm2def
|
Creates a template for PC/python_nt.def |
objgraph
|
Prints object graph from nm output on a library
|
...
...
(Not finished, please download and read the complete file)
...
Expand> <Close
Want complete source code? Download it here
Point(s): 1
Download
0 lines left, continue to read ▼
File list
Tips: You can preview the content of files by clicking file names^_^
...
Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!OK
Favorite by Ctrl+D
|