1This directory contains a collection of executable Python scripts that 2are useful while building, extending or managing Python. Some (e.g., 3dutree or lll) are also generally useful UNIX tools. 4 5See also the Demo/scripts directory! 6 7analyze_dxp.py Analyzes the result of sys.getdxp() 8byext.py Print lines/words/chars stats of files by extension 9byteyears.py Print product of a file's size and age 10checkappend.py Search for multi-argument .append() calls 11checkpyc.py Check presence and validity of ".pyc" files 12classfix.py Convert old class syntax to new 13cleanfuture.py Fix reduntant Python __future__ statements 14combinerefs.py A helper for analyzing PYTHONDUMPREFS output. 15copytime.py Copy one file's atime and mtime to another 16crlf.py Change CRLF line endings to LF (Windows to Unix) 17cvsfiles.py Print a list of files that are under CVS 18db2pickle.py Dump a database file to a pickle 19diff.py Print file diffs in context, unified, or ndiff formats 20dutree.py Format du(1) output as a tree sorted by size 21eptags.py Create Emacs TAGS file for Python modules 22find_recursionlimit.py Find the maximum recursion limit on this machine 23finddiv.py A grep-like tool that looks for division operators 24findlinksto.py Recursively find symbolic links to a given path prefix 25findnocoding.py Find source files which need an encoding declaration 26fixcid.py Massive identifier substitution on C source files 27fixdiv.py Tool to fix division operators. 28fixheader.py Add some cpp magic to a C include file 29fixnotice.py Fix the copyright notice in source files 30fixps.py Fix Python scripts' first line (if #!) 31ftpmirror.py FTP mirror script 32google.py Open a webbrowser with Google 33gprof2html.py Transform gprof(1) output into useful HTML 34h2py.py Translate #define's into Python assignments 35hotshotmain.py Main program to run script under control of hotshot 36idle Main program to start IDLE 37ifdef.py Remove #if(n)def groups from C sources 38lfcr.py Change LF line endings to CRLF (Unix to Windows) 39linktree.py Make a copy of a tree with links to original files 40lll.py Find and list symbolic links in current directory 41logmerge.py Consolidate CVS/RCS logs read from stdin 42mailerdaemon.py parse error messages from mailer daemons (Sjoerd&Jack) 43md5sum.py Print MD5 checksums of argument files. 44methfix.py Fix old method syntax def f(self, (a1, ..., aN)): 45mkreal.py Turn a symbolic link into a real file or directory 46ndiff.py Intelligent diff between text files (Tim Peters) 47nm2def.py Create a template for PC/python_nt.def (Marc Lemburg) 48objgraph.py Print object graph from nm output on a library 49parseentities.py Utility for parsing HTML entity definitions 50pathfix.py Change #!/usr/local/bin/python into something else 51pdeps.py Print dependencies between Python modules 52pickle2db.py Load a pickle generated by db2pickle.py to a database 53pindent.py Indent Python code, giving block-closing comments 54ptags.py Create vi tags file for Python modules 55pydoc Python documentation browser. 56pysource.py Find Python source files 57redemo.py Basic regular expression demonstration facility 58reindent.py Change .py files to use 4-space indents. 59rgrep.py Reverse grep through a file (useful for big logfiles) 60serve.py Small wsgiref-based web server, used in make serve in Doc 61setup.py Install all scripts listed here 62suff.py Sort a list of files by suffix 63svneol.py Sets svn:eol-style on all files in directory 64texcheck.py Validate Python LaTeX formatting (Raymond Hettinger) 65texi2html.py Convert GNU texinfo files into HTML 66treesync.py Synchronize source trees (very ideosyncratic) 67untabify.py Replace tabs with spaces in argument files 68which.py Find a program in $PATH 69xxci.py Wrapper for rcsdiff and ci 70