<?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>py-postgresql</name>
<shortdesc>PostgreSQL driver and tools library.</shortdesc>
<description>py-postgresql is a set of Python modules providing interfaces to various parts
of PostgreSQL. Notably, it provides a pure-Python driver + C optimizations for
querying a PostgreSQL database.

http://python.projects.postgresql.org

Features:

 * Prepared Statement driven interfaces.
 * Cluster tools for creating and controlling a cluster.
 * Support for most PostgreSQL types: composites, arrays, numeric, lots more.
 * COPY support.

Sample PG-API Code::

	&gt;&gt;&gt; import postgresql
	&gt;&gt;&gt; db = postgresql.open('pq://user:password@host:port/database')
	&gt;&gt;&gt; db.execute("CREATE TABLE emp (emp_first_name text, emp_last_name text, emp_salary numeric)")
	&gt;&gt;&gt; make_emp = db.prepare("INSERT INTO emp VALUES ($1, $2, $3)")
	&gt;&gt;&gt; make_emp("John", "Doe", "75,322")
	&gt;&gt;&gt; with db.xact():
	...  make_emp("Jane", "Doe", "75,322")
	...  make_emp("Edward", "Johnson", "82,744")
	...

There is a DB-API 2.0 module as well::

	postgresql.driver.dbapi20

However, PG-API is recommended as it provides greater utility.

Once installed, try out the ``pg_python`` console script::

	$ pg_python -h localhost -p port -U theuser -d database_name

If a successful connection is made to the remote host, it will provide a Python
console with the database connection bound to the `db` name.


History
-------

py-postgresql is not yet another PostgreSQL driver, it's been in development for
years. py-postgresql is the Python 3 port of the ``pg_proboscis`` driver and
integration of the other ``pg/python`` projects.</description>
<homepage rdf:resource="http://python.projects.postgresql.org" />
<maintainer><foaf:Person><foaf:name>James William Pye</foaf:name>
<foaf:mbox_sha1sum>2752b5aa3547dcfccca40f7174b49b9d0259deae</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>0.9.1</revision></Version></release>
</Project></rdf:RDF>