File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- About py-postgresql
2- ===================
1+ About
2+ =====
33
44py-postgresql is a Python 3 package providing modules to work with PostgreSQL.
55This includes a high-level driver, and many other tools that support a developer
66working with PostgreSQL databases.
77
8- The goal of this project is to provide substantial convenience to Python
9- developers working with PostgreSQL.
10-
11-
128Installation
139------------
1410
1511Installation *should* be as simple as::
1612
1713 $ python3 ./setup.py install
1814
19-
2015More information about installation is available via::
2116
2217 python -m postgresql.documentation.admin
2318
24-
2519Basic Driver Usage
2620------------------
2721
28- Using PG-API is recommended as it provides more utility for the user ::
22+ Using PG-API::
2923
3024 >>> import postgresql
3125 >>> db = postgresql.open('pq://user:password@host:port/database')
@@ -34,15 +28,12 @@ Using PG-API is recommended as it provides more utility for the user::
3428 >>> print(x)
3529 >>> print(get_table.first("tables"))
3630
37- However, a DB-API 2.0 driver is provided: `postgresql.driver.dbapi20`.
38-
31+ However, a DB-API 2.0 driver is provided as well: `postgresql.driver.dbapi20`.
3932
4033Further Information
4134-------------------
4235
43- The documentation package, `postgresql.documentation.index`, contains more
44- detailed information on the modules herein, and HTML versions of the
45- documentation can be found at:
36+ Online documentation can be retrieved from:
4637
4738 http://python.projects.postgresql.org
4839
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def alter_config(
9090 'Alters a configuration file without trampling on the existing structure'
9191 if keys is None :
9292 keys = list (map .keys ())
93- # Normalize keys and map them back to
93+ # Normalize keys and map them back to
9494 pkeys = {
9595 k .lower ().strip () : keys .index (k ) for k in keys
9696 }
Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ static PyMethodDef optimized_methods[] = {
5959static struct PyModuleDef optimized_module = {
6060 PyModuleDef_HEAD_INIT ,
6161 "optimized" , /* name of module */
62- NULL , /* module documentation, may be NULL */
63- -1 , /* size of per-interpreter state of the module,
64- or -1 if the module keeps state in global variables. */
62+ NULL , /* module documentation, may be NULL */
63+ -1 , /* size of per-interpreter state of the module,
64+ or -1 if the module keeps state in global variables. */
6565 optimized_methods ,
6666};
6767
You can’t perform that action at this time.
0 commit comments