This library implements the JSON-RPC 2.0 proposed specification in pure Python.
It is designed to be as compatible with the syntax of xmlrpclib as possible (it
extends where possible), so that projects using xmlrpclib could easily be
modified to use JSON and experiment with the differences.
It is backwards-compatible with the 1.0 specification, and supports all of the
new proposed features of 2.0, including:
* Batch submission (via MultiCall)
* Keyword arguments
* Notifications (both in a batch and 'normal')
* Class translation using the 'jsonclass' key.
From the documentation:
The kjbuckets module defines three data types for Python: kjSet,
kjGraph, and kjDict. These types come with a number of associated
methods, including common set theoretical operations such as union,
intersection, difference, composition, transposition, reachability
sets, and transitive closure.
For suitably large compute intensive uses these types should provide
up to an order of magnitude speedup versus an implementation that uses
analogous operations implemented directly in Python.
'tconfpy' is an advanced configuration file parser and validator for
Python programs. By using 'tconfpy', Python programmers can provide
their users with an external configuration file for setting program
options, defining defaults, and so on. 'tconfpy' offloads the
responsibility for parsing and validating a configuration file from
the main application. The Python programmer need only deal
with the results and any errors or warnings generated during the
parsing process.
The zc.lockfile package provides a basic portable implementation of
interprocess locks using lock files. The purpose if not specifically
to lock files, but to simply provide locks with an implementation
based on file-locking primitives. Of course, these locks could be
used to mediate access to other files. For example, the ZODB file
storage implementation uses file locks to mediate access to
file-storage database files. The database files and lock file files
are separate files.
pytest-localserver is a plugin for the pytest testing framework which
enables you to test server connections locally.
Sometimes monkeypatching urllib2.urlopen() just does not cut it, for
instance if you work with urllib2.Request, define your own
openers/handlers or work with httplib. In these cases it may come in
handy to have an HTTP server running locally which behaves just like
the real thing. Well, look no further!
These are a few data structures, classes and functions
which we've needed over many years of Python
programming and which seem to be of general use to
other Python programmers. Many of the modules that
have existed in pyutil over the years have subsequently
been obsoleted by new features added to the Python
language or its standard library, thus showing that
we're not alone in wanting tools like these.
Pymacs is a powerful tool which, once started from Emacs, allows
both-way communication between Emacs Lisp and Python. Pymacs aims Python
as an extension language for Emacs rather than the other way around, and
this asymmetry is reflected in some design choices. Within Emacs Lisp
code, one may load and use Python modules. Python functions may
themselves use Emacs services, and handle Emacs Lisp objects kept in
Emacs Lisp space.
Robot Framework is a generic test automation framework for acceptance
testing and acceptance test-driven development (ATDD). It has
easy-to-use tabular test data syntax and utilizes the keyword-driven
testing approach. Its testing capabilities can be extended by test
libraries implemented either with Python or Java, and users can create
new keywords from existing ones using the same syntax that is used for
creating test cases.
This package contains utilities used to package some of STScI's Python
projects, specifically those projects that comprise stsci_python and Astrolib.
It currently consists mostly of some setup_hook scripts meant for use with
distutils2/packaging and/or d2to1, and a customized easy_install command meant
for use with distribute.
This package is not meant for general consumption, though it might be worth
looking at for examples of how to do certain things with your own packages.
Pretty-print tabular data in Python.
The main use cases of the library are:
printing small tables without hassle: just one function call,
formatting is guided by the data itself authoring tabular data for
lightweight plain-text markup: multiple output formats
suitable for further editing or transformation readable presentation of
mixed textual and numeric data: smart column alignment,
configurable number formatting, alignment by a decimal point