<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Project><name>jwp_python_command</name>
<shortdesc>Python command creation tools</shortdesc>
<description>python_command provides modules to facilitate the creation of a Python
command. This is primarily used to create contexts for which scripts are to
be ran within.

The package is comprised of three modules:

 name.jwp.python.command.option
  Provides optparse options: -m, -c, --python-context, --pdb-pm

 name.jwp.python.command.loader
  Provides loaders for, well, loading Python code. The loader interfaces
  from PEP302 were chosen for working with pkgutil.get_loader. The
  implementation of this may have been mangled a bit with file_loader and
  single_loader, but it was the best seemingly standard interface for
  such a task.

 name.jwp.python.command.runtime
  Provides the 'execution' class to create the execution context,
  and an ExtendedConsole class that provides some basic backslash
  commands to the Python interpreter.

Example:

# The 'jwpython' script is a synonym for:
# (yes, lame name)
$ python -m name.jwp.python.command.runtime -c 'print "foo"'
foo

$ python -m name.jwp.python.command.runtime -m timeit
10000000 loops, best of 3: 0.0252 usec per loop

The recreated implementation of the Python command interface is done for the
reason of creating contextual Python commands. While running
name.jwp.python.command.runtime is completely redundant, the package
provides a means for Python commands to be created with great ease.

The notable use-case is the pb_python command that takes standard PostgreSQL
options and runs a Python command with an already established connection set
as a builtin. Scripts written to be executed by the command only need to
reference that object for database access.

Additionally, the runtime module provides an enhanced Python console and
a postmortem option(--pdb-pm or --python-postmortem=pdb.pm)</description>
<download-page>http://svn.jwp.name/lib/python/python_command/fork/v1.1.1</download-page>
<homepage rdf:resource="http://jwp.name" />
<maintainer><foaf:Person><foaf:name>James William Pye</foaf:name>
<foaf:mbox_sha1sum>39c6db2ebf88baffd9287843251b641af3e7ebd9</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>1.1.1</revision></Version></release>
</Project></rdf:RDF>