Adding the directory of the python... - Anthon van der Neut If you install python under windows and then open a command shell (DOS-prompt, you normally get an error message if you type 'python' at the prompt. This is because the directory of the python executable is not in the PATH environment variable. If you know where you installed python, you can add this via Control Panel -> System -> Advanced -> Environment Variables but this is not very user friendly way of doing... Python script main line for graceful... - Trent Mick This is a recipe is often use for the mainline of my Python scripts. With this recipe your Python script will: gracefully handle Ctrl+C (i.e. KeyboardInterrupt) log an error (using the logging module) for uncaught exceptions,... Using python scripts without .py... - Michael Soulier One problem with ending all of your python scripts in .py is that you have to type the full name of the command. On Unix you can symlink to it with the shortened name, or wrap it in a bourne-shell script, or a shell alias. None of these solutions... Tools / Debuggers An extension of the Python Library module 'asynchat' to support highly scaleable HTTP clients. We intend to learn from, and use pieces of, the excellent 'httplib' module. Python / Miscellaneous For a number of years Python has provided developers with the special parameters 'cmp' and 'key' on list.sort and __builtin__.sorted. However Python does not provide a built-in mechanism for doing binary searches on such sorted lists. This... transform command line arguments to... - Trent Mick For many of my Python modules I find it convenient to provide a small if __name__ '__main__': ... block to be able to call individual methods from the command line. This requires some kind of translation of command-line string... Python / Miscellaneous A function that outputs a human-readable version of a Python AST. Python / Miscellaneous Good demonstration of inheriting python default object types. Define a maximum size (items, not bytes) to limit to and use as a normal dictionary (be careful to have KeyError exception handling, or use the dictionary's get method with a default... Python / Miscellaneous This recipe demonstrates the use of the Python Imaging Library to apply a gaussian blur drop shadow to an image. Python / Miscellaneous This module saves and reloads compressed representations of generic Python objects to and from the disk. Development / Data Formats Translation from english to brazilian-portuguese of the Python 2.5.2 DocumentationTraduo do ingles para o portugus da Documentao de Python 2.5.2 Tools / Build Tools Ccec is a repository of miscellaneous Python utilities as well as useful libraries. Development / User Interfaces Wrapper of Tkinter python module. Provides useful widgets created especially with sw-developers and electronic engineers in mind, who need simple and functional GUI for controlling statuses, logging events, or testing programs at the initial stage. Development / Documentation pycallgraphTAexport is an extension of the python module pycallgraph. pycallgraphTAexport is a modified version of pycallgraph which adds the ability to export in the TA (tuple-attribute) format used by many software architecture analysis tools. Sorting big files the Python 2.6 way - Gabriel Genellina This is just a rewrite of Recipe 466302 'Sorting big files the Python 2.4 way', taking advantage of heapq.merge, context managers, and other niceties of newer Python versions. It can be used to sort very large files (millions of records)... Python / Miscellaneous One can (ab)use this decorator to get the effect of a Lisp-like with_open_file block in Python. Kind of. Requires Python 2.4. Development / Object Oriented The goal of this project is to provide a set of Python bindings for the RakNet UDP network library version 3.0. RakNet-Python is implemented with the help of Boost.Python library and tries to mimic RakNet's original C++ interface. Madam Lenormand Fortune Teller - The Scripts Joint Madam Lenormand Fortune Teller is a online entertaining programme to know your forture. This is based upon the methods of Marie Lenormand who is a parisian fortune teller lived in 19th century. This script offers users a unique method of fortune... Python / Books From the Back Cover / Python Web Programming is a practical introduction to building networked systems in the object-oriented framework of the Python language. It shows how to leverage the powerful Python libraries to build systems with less... Python / Tips and Tutorials / XML and Python The first two installments of Charming Python by David Mertz provided an overview of working with XML in Python. In the year since those initial writings, however, the state of XML tools for Python has advanced significantly. Unfortunately, most... |