Plex is a Python module for constructing lexical analysers,
or scanners. Plex scanners have almost all the capabilities of
the scanners generated by GNU Flex, and are specified in a very
similar way. Tokens are defined by regular expressions, and each
token has an associated action, which may be to return a literal
value, or to call an arbitrary function.
ZConfig is a general use Python configuration library. It supports a
hierarchical schema-driven configuration model that allows a schema to
specify data conversion routines written in Python. ZConfig's model is
very different from the model support by the ConfigParser module
found in Python's standard library, and is more suitable to
configuration-intensive applications.
Pretend is a library to make stubbing with Python easier.
What is stubbing?
Stubbing is a technique for writing tests. You may hear the term mixed
up with mocks, fakes, or doubles. Basically a stub is an object that
returns pre-canned responses, rather than doing any computation.
prompt_toolkit is a library for building powerful interactive command lines in
Python. It ships with a nice interactive Python shell (called ptpython) built
on top of the library.
prompt_toolkit could be a replacement for readline, but it can be much more
than that.
Pydoop is a Python interface to Hadoop that allows you to write MapReduce
applications in pure Python.
Pydoop offers several features not commonly found in other Python
libraries for Hadoop:
-- a rich HDFS API;
-- a MapReduce API that allows to write pure Python record readers / writers,
partitioners and combiners;
-- transparent Avro (de)serialization;
-- easy installation-free usage;
Pympler is a development tool to measure, monitor and analyze the memory
behavior of Python objects in a running Python application.
By pympling a Python application, detailed insight in the size and the lifetime
of Python objects can be obtained. Undesirable or unexpected runtime behavior
like memory bloat and other "pymples" can easily be identified.
Pyrepl is a neat replacement for python readline module.
Features:
- sane multi-line editing
- history, with incremental search
- completion, including displaying of available options
- a fairly large subset of the readline emacs-mode key bindings
(adding more is mostly just a matter of typing)
- Deliberately liberal, Python-style license
- no global variables, so you can run two independent readers
without having their histories interfering.
Tipper is a small utility for dumping `stack tracebacks`_ of running
Python processes.
Included is a module that, when imported, installs a `signal handler`_
for `SIGUSR1`_. Running ``kill -SIGUSR1 [pid]`` will cause the process
to dump the current stack trace of each thread to
``$TMPDIR/tipper-[Unix timestamp]-[parent pid]-[pid].log``.
A port of BrowserScope's user agent string parser.
The crux of the original parser -- the data collected by Steve Souders over
the years -- has been extracted into a separate YAML file so as to be reusable
as is by implementations in other programming languages.
ua-parser is just a small wrapper around this data.
This package provides a general logging facility that, at this point,
is just a small shim over Python's logging module. Therefore, unless
you need to support a legacy package from the Zope 2 world, you're
probably better off using Python's logging module.