ASPN ActiveState Programmer Network  
| RDF Version ActiveState, a division of Sophos
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbook | Documentation | Mailing Lists | Products | User Groups
Submit Recipe
My Recipes

All Recipes
All Cookbooks


View by Category

Advertise Jobs

Python Cookbook

Welcome to the Python Cookbook, a collaborative collection of your contributions to Python lore.

Python Cookbook code is freely available for use and review. We encourage you to contribute recipes (code and discussion), comments and ratings.

Thanks to everyone who submitted recipes and comments for the Python Cookbook Second Edition. The collection, co-edited with Alex Martelli and Anna Ravenscroft, is scheduled for publication in March, 2005.

Contributors whose recipes are used in the book will receive a complimentary copy of the Second Edition. A portion of all royalties will go to the non-profit Python Software Foundation.

Cheers and happy cooking!

David Ascher, Editor in Chief
Email: pythoncookbook@activestate.com


View:   Editors Pick | Approved | Not Approved | All
1-20 | 21-40 | 41-60 | 61-80 ( found 2187 recipes )
<< Previous next >>

TV-Series Current Episode Info (A B)
The getEps function in this module returns a text string containing the original air date for the ...
Modified: 2008/05/08 15:11

Lightweight Unittester (Raymond Hettinger)
Inspired by py.test, the unittester is a single, simple function that is easily customized. The ...
Modified: 2008/05/08 08:59

Play a PLS audio stream in Windows Media Player (Chris Grebeldinger)
I don't want to bother installing a better media player, but I want to listen to PLS stations ...
Modified: 2008/05/07 19:38

Date & time RFC822 formatted for RSS2, etc (straw man) (Bill Bell)
I live in a geographical area whose daylight savings time provisions seem to fool software. I would ...
Modified: 2008/05/07 17:33

Run function in separate process (Muhammad Alkarouri)
This is a simple function that runs another function in a different process by forking a new ...
Rated: 4 out of 5 by 5 user(s), Modified: 2008/05/04 12:48

JavaScript code compression (Michael Palmer)
A regex-based JavaScript compression kludge. The current version has been tested against ...
Modified: 2008/05/04 01:08

how to implement kbhit() on Linux (Nelson Rush)
kbhit on linux, the sample just prints dots until you press any key. I updated the sample to show ...
Rated: 5 out of 5 by 1 user(s), Modified: 2008/05/03 05:13

Unicode String Hex Dump (Jack Trainor)
Simple routine for dumping any kind of string, ascii, encoded, or unicode, to a standard hex dump. ...
Modified: 2008/05/03 01:12

PyChecker postprocessor (Jean Brouwers)
This recipe can separate the output of PyChecker into OK'd and regular messages. An example is ...
Modified: 2008/05/02 15:31

Quickly calculate folder or volume size (Higinio Cachola)
This recipe uses the win32file.FindFilesW() function to efficiently calculate total size of a ...
Modified: 2008/05/01 19:41

Recreate MS Access table in SQLite (K. Killebrew)
A function to create and load a table in SQLite from a Microsoft Jet table, using DAO. Also ...
Modified: 2008/05/01 13:37

Print Tkinter canvas without a postscript printer (jesse james)
My printer will not accept postscript and all i needed to print was canvas rectangles. So here is ...
Modified: 2008/04/28 21:32

Google Hits (A B)
The getHits function in this file takes as input a search term string, and returns as output a dict ...
Modified: 2008/04/27 07:31

Prime sieve generators (Aaron Gallagher)
Two simple generators for generating prime numbers using a prime sieve. gen_sieve(n) will produce ...
Modified: 2008/04/25 22:29

MultiThread support for SQLite access. (Louis RIVIERE)
Workaround for the SQLite limitation that prevents multiple threads from sharing a Connection ...
Modified: 2008/04/24 10:02

Attribute-based Interface (Jack Trainor)
I am converting Prof. David Cheriton's OO software methodology to Python. It's an approach for ...
Modified: 2008/04/22 14:30

Method signature type checking decorator for Python 3000 (Dmitry Dvoinikov)
This recipe allows nice and clean validation for method parameters/return values. It uses function ...
Modified: 2008/04/22 01:25

HTML/CSS to PDF converter (Dirk Holtwick)
Most people know how to write a page with HTML and CSS. Why not using these skills to dynamically ...
Rated: 4 out of 5 by 1 user(s), Modified: 2008/04/20 06:06

SPICE (Stephen Chappell)
This module provides access to a standardized implementation of SPICE (Stephen's Power-Inspired, ...
Modified: 2008/04/19 20:08

PathCatcher - Windows utility for right-click capture of file or folder path (Jack Trainor)
PathCatcher is a Windows utility that allows one to right-click on a file or a folder or a group of ...
Rated: 5 out of 5 by 2 user(s), Modified: 2008/04/19 17:14

1-20 | 21-40 | 41-60 | 61-80 ( found 2187 recipes )
<< Previous next >>

Except where otherwise noted, recipes in the Python Cookbook are published under the Python license .



Highest rated recipes:

1. A simple XML-RPC server

2. Web service accessible ...

3. IPy Notify

4. Wrapping method calls ...

5. Assignment in expression

6. SOLVING THE METACLASS ...

7. Povray for python

8. Calling Windows API ...

9. Quantum Superposition

10. Pickle objects under ...




Privacy Policy | Email Opt-out | Feedback | Syndication
© 2006 ActiveState Software Inc. All rights reserved.