|
23 | 23 |
|
24 | 24 | LONG_DESCRIPTION = """ |
25 | 25 | py-postgresql is a set of Python modules providing interfaces to various parts |
26 | | -of PostgreSQL. Notably, it provides a driver for querying a PostgreSQL database. |
| 26 | +of PostgreSQL. Notably, it provides a pure-Python driver + C optimizations for |
| 27 | +querying a PostgreSQL database. |
27 | 28 |
|
28 | | -Sample PG-API Code |
29 | | ------------------- |
| 29 | +http://python.projects.postgresql.org |
| 30 | +
|
| 31 | +Features: |
| 32 | +
|
| 33 | + * Prepared Statement driven interfaces. |
| 34 | + * Cluster tools for creating and controlling a cluster. |
| 35 | + * Support for most PostgreSQL types: composites, arrays, numeric, lots more. |
| 36 | + * COPY support. |
| 37 | +
|
| 38 | +Sample PG-API Code:: |
30 | 39 |
|
31 | | - >>> import postresql |
| 40 | + >>> import postgresql |
32 | 41 | >>> db = postgresql.open('pq://user:password@host:port/database') |
33 | 42 | >>> db.execute("CREATE TABLE emp (emp_first_name text, emp_last_name text, emp_salary numeric)") |
34 | 43 | >>> make_emp = db.prepare("INSERT INTO emp VALUES ($1, $2, $3)") |
35 | 44 | >>> make_emp("John", "Doe", "75,322") |
36 | | - >>> with db.xact: |
| 45 | + >>> with db.xact(): |
37 | 46 | ... make_emp("Jane", "Doe", "75,322") |
38 | 47 | ... make_emp("Edward", "Johnson", "82,744") |
39 | 48 | ... |
|
44 | 53 |
|
45 | 54 | However, PG-API is recommended as it provides greater utility. |
46 | 55 |
|
47 | | -Once you get it installed, try out the ``pg_python`` command:: |
| 56 | +Once installed, try out the ``pg_python`` console script:: |
48 | 57 |
|
49 | 58 | $ pg_python -h localhost -p port -U theuser -d database_name |
50 | 59 |
|
|
56 | 65 | ------- |
57 | 66 |
|
58 | 67 | py-postgresql is not yet another PostgreSQL driver, it's been in development for |
59 | | -years. py-postgresql is the Python 3.0 port of the ``pg_proboscis`` driver and |
| 68 | +years. py-postgresql is the Python 3 port of the ``pg_proboscis`` driver and |
60 | 69 | integration of the other ``pg/python`` projects. |
61 | | -
|
62 | | -
|
63 | | -More Information |
64 | | ----------------- |
65 | | -
|
66 | | -http://python.projects.postgresql.org |
67 | 70 | """ |
68 | 71 |
|
69 | 72 | CLASSIFIERS = [ |
@@ -157,7 +160,7 @@ def standard_setup_keywords(build_extensions = True, prefix = default_prefix): |
157 | 160 | d = { |
158 | 161 | 'name' : name, |
159 | 162 | 'version' : version, |
160 | | - 'description' : 'PostgreSQL tools pacakges. Driver, API specifications, and cluster tools.', |
| 163 | + 'description' : 'PostgreSQL driver and tools library.', |
161 | 164 | 'long_description' : LONG_DESCRIPTION, |
162 | 165 | 'author' : 'James William Pye', |
163 | 166 | 'author_email' : 'x@jwp.name', |
|
0 commit comments