bitstring is a Python module that helps to make the creation and analysis of binary data as simple and natural as possible. Objects can be constructed from integers (big and little endian), floats, hex, octal, binary, byte data, iterables, or files. They can be sliced, joined, reversed, packed, unpacked, inserted into, overwritten, and otherwise operated upon with simple functions or slice notation. They can also be parsed, searched, and navigated in, similar to a file or stream. Internally the data is efficiently stored as byte arrays. It is available for Python 2.6 and later (including Python 3).
Python bsddb3 is a Python module that provides a nearly complete wrapping of the Oracle/Sleepycat C API for the database environment, database, cursor, sequence, and transaction objects, and each of these is exposed as a Python type in the bsddb3.db module. The database objects can use various access methods: btree, hash, recno, and queue. It has complete support for Berkeley DB distributed transactions, and complete support for the Berkeley DB Replication Manager and base replication API. The goal is to mirror most of the real Berkeley DB API.
Langer is an object oriented, rule based programming language. Its interpreter is shipped as a Python library. It was created to express behavior strategies, has a simple syntax based on languages like Python and C, and was designed to be convenient and readable for a programmer, but it can be easily used in genetic programming as well.
pyratemp is probably (one of) the smallest complete template-engines for Python (with about 500 LOC). It has a very small set of special syntax in the templates. This reduces complexity and the probability of bugs and lead to an easy-to-use and intuitive user-interface. It uses embedded Python-expressions (in a "sandbox"), is well documented, has full Unicode-support, and produces very good error-messages, which is very useful when creating new templates.
Fivebit is a Python 3 compression library for short text strings. It compresses short strings of text into five bit encoding, which yields a 37.5% reduction for lowercase ASCII. There is also a dictionary for the 1024 most common English words (3 letters or longer). Punctuation, digits, and normal symbols will usually take up 10 bits each, and oddball Unicode characters will take up more space again.