Sunday, October 24, 2010

PyMOTW: ConfigParser - Work with configuration files

Use the ConfigParser module to manage user-editable
configuration files for an application. The configuration files are
organized into sections, and each section can contain name-value pairs
for configuration data. Value interpolation using Python formatting
strings is also supported, to build values that depend on one another
(this is especially handy for URLs and message strings).

Read more...


Sunday, October 17, 2010

PyMOTW: sqlite3 - Embedded Relational Database

The sqlite3 module provides a DB-API 2.0 compliant interface to
the SQLite relational database. SQLite is an in-process database,
designed to be embedded in applications, instead of using a separate
database server program such as MySQL, PostgreSQL, or Oracle. SQLite
is fast, rigorously tested, and flexible, making it suitable for
prototyping and production deployment for some applications.

Read more...


Sunday, October 10, 2010

PyMOTW: random - Pseudorandom number generators

The random module provides a fast pseudorandom number generator
based on the Mersenne Twister algorithm. Originally developed to
produce inputs for Monte Carlo simulations, Mersenne Twister generates
numbers with nearly uniform distribution and a large period, making it
suited for a wide range of appliations.

Read more...


Sunday, October 3, 2010

PyMOTW: select - Wait for I/O Efficiently

The select module provides access to platform-specific I/O
monitoring functions. The most portable interface is the POSIX
function select(), which is available on Unix and Windows. The
module also includes poll(), a Unix-only API, and several
options that only work with specific variants of Unix.

Read more...