PyGreSQL 6.1.0__tar.gz → 6.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pygresql-6.1.0 → pygresql-6.2.1}/LICENSE.txt +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/MANIFEST.in +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/PKG-INFO +12 -39
- {pygresql-6.1.0 → pygresql-6.2.1}/PyGreSQL.egg-info/PKG-INFO +12 -39
- {pygresql-6.1.0 → pygresql-6.2.1}/PyGreSQL.egg-info/SOURCES.txt +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/PyGreSQL.egg-info/dependency_links.txt +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/PyGreSQL.egg-info/top_level.txt +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/README.rst +3 -3
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/Makefile +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/_static/favicon.ico +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/_static/pygresql.png +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/about.rst +3 -3
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/community/homes.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/community/index.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/community/issues.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/community/mailinglist.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/community/source.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/community/support.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/conf.py +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/changelog.rst +13 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/examples.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/general.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/index.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/install.rst +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/adaptation.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/connection.rst +2 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/db_types.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/db_wrapper.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/index.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/introduction.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/large_objects.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/module.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/notification.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pg/query.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/adaptation.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/connection.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/cursor.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/index.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/introduction.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/module.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/typecache.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/pgdb/types.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/postgres/advanced.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/postgres/basic.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/postgres/func.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/postgres/index.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/postgres/syscat.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/contents/tutorial.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/copyright.rst +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/download/download.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/download/files.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/download/index.rst +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/make.bat +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/docs/requirements.txt +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pgconn.c +19 -9
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pginternal.c +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pglarge.c +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pgmodule.c +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pgnotice.c +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pgquery.c +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pgsource.c +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/ext/pgtypes.h +75 -78
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/__init__.py +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/_pg.pyi +2 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/adapt.py +7 -6
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/core.py +12 -14
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/db.py +15 -9
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/__init__.py +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/pyproject.toml +6 -9
- {pygresql-6.1.0 → pygresql-6.2.1}/setup.py +68 -25
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/__init__.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/config.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/dbapi20.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_classic.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_classic_attrdict.py +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_classic_connection.py +47 -23
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_classic_dbwrapper.py +21 -3
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_classic_functions.py +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_classic_largeobj.py +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_classic_notification.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_dbapi20.py +1 -1
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_dbapi20_copy.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/tests/test_tutorial.py +2 -2
- {pygresql-6.1.0 → pygresql-6.2.1}/tox.ini +24 -18
- {pygresql-6.1.0 → pygresql-6.2.1}/PyGreSQL.egg-info/not-zip-safe +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/attrs.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/cast.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/error.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/helpers.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/notify.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/py.typed +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pg/tz.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/adapt.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/cast.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/connect.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/connection.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/constants.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/cursor.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/py.typed +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/pgdb/typecode.py +0 -0
- {pygresql-6.1.0 → pygresql-6.2.1}/setup.cfg +0 -0
|
@@ -6,7 +6,7 @@ Copyright (c) 1995, Pascal Andre
|
|
|
6
6
|
|
|
7
7
|
Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
|
|
8
8
|
|
|
9
|
-
Further modifications copyright (c) 2009-
|
|
9
|
+
Further modifications copyright (c) 2009-2025 by the PyGreSQL Development Team
|
|
10
10
|
|
|
11
11
|
PyGreSQL is released under the PostgreSQL License, a liberal Open Source
|
|
12
12
|
license, similar to the BSD or MIT licenses:
|
|
File without changes
|
|
@@ -1,42 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: PyGreSQL
|
|
3
|
-
Version: 6.1
|
|
3
|
+
Version: 6.2.1
|
|
4
4
|
Summary: Python PostgreSQL interfaces
|
|
5
5
|
Home-page: https://pygresql.github.io/
|
|
6
6
|
Download-URL: https://pygresql.github.io/download/
|
|
7
7
|
Author: D'Arcy J. M. Cain
|
|
8
8
|
Author-email: "D'Arcy J. M. Cain" <darcy@pygresql.org>, Christoph Zwerschke <cito@online.de>
|
|
9
|
-
License:
|
|
10
|
-
|
|
11
|
-
Based heavily on code written by Pascal Andre (andre@chimay.via.ecp.fr)
|
|
12
|
-
|
|
13
|
-
Copyright (c) 1995, Pascal Andre
|
|
14
|
-
|
|
15
|
-
Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
|
|
16
|
-
|
|
17
|
-
Further modifications copyright (c) 2009-2024 by the PyGreSQL Development Team
|
|
18
|
-
|
|
19
|
-
PyGreSQL is released under the PostgreSQL License, a liberal Open Source
|
|
20
|
-
license, similar to the BSD or MIT licenses:
|
|
21
|
-
|
|
22
|
-
Permission to use, copy, modify, and distribute this software and its
|
|
23
|
-
documentation for any purpose, without fee, and without a written agreement
|
|
24
|
-
is hereby granted, provided that the above copyright notice and this
|
|
25
|
-
paragraph and the following two paragraphs appear in all copies. In
|
|
26
|
-
this license the term "AUTHORS" refers to anyone who has contributed code
|
|
27
|
-
to PyGreSQL.
|
|
28
|
-
|
|
29
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
|
|
30
|
-
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
|
|
31
|
-
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
|
|
32
|
-
AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
-
|
|
34
|
-
THE AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
35
|
-
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
36
|
-
PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE
|
|
37
|
-
AUTHORS HAVE NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
|
|
38
|
-
ENHANCEMENTS, OR MODIFICATIONS.
|
|
39
|
-
|
|
9
|
+
License-Expression: PostgreSQL
|
|
40
10
|
Project-URL: Homepage, https://pygresql.github.io/
|
|
41
11
|
Project-URL: Documentation, https://pygresql.github.io/contents/
|
|
42
12
|
Project-URL: Source Code, https://github.com/PyGreSQL/PyGreSQL
|
|
@@ -47,25 +17,28 @@ Project-URL: Mailing List, https://mail.vex.net/mailman/listinfo/pygresql
|
|
|
47
17
|
Keywords: pygresql,postgresql,database,api,dbapi
|
|
48
18
|
Classifier: Development Status :: 6 - Mature
|
|
49
19
|
Classifier: Intended Audience :: Developers
|
|
50
|
-
Classifier: License :: OSI Approved :: PostgreSQL License
|
|
51
20
|
Classifier: Operating System :: OS Independent
|
|
52
21
|
Classifier: Programming Language :: C
|
|
53
22
|
Classifier: Programming Language :: Python
|
|
54
23
|
Classifier: Programming Language :: Python :: 3
|
|
55
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
56
24
|
Classifier: Programming Language :: Python :: 3.8
|
|
57
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
58
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
59
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
60
28
|
Classifier: Programming Language :: Python :: 3.12
|
|
61
29
|
Classifier: Programming Language :: Python :: 3.13
|
|
30
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
62
31
|
Classifier: Programming Language :: SQL
|
|
63
32
|
Classifier: Topic :: Database
|
|
64
33
|
Classifier: Topic :: Database :: Front-Ends
|
|
65
34
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
66
|
-
Requires-Python: >=3.
|
|
35
|
+
Requires-Python: >=3.8
|
|
67
36
|
Description-Content-Type: text/x-rst
|
|
68
37
|
License-File: LICENSE.txt
|
|
38
|
+
Dynamic: author
|
|
39
|
+
Dynamic: download-url
|
|
40
|
+
Dynamic: home-page
|
|
41
|
+
Dynamic: license-file
|
|
69
42
|
|
|
70
43
|
PyGreSQL - Python interface for PostgreSQL
|
|
71
44
|
==========================================
|
|
@@ -79,7 +52,7 @@ It is based on the PyGres95 code written by Pascal Andre.
|
|
|
79
52
|
D'Arcy J. M. Cain renamed it to PyGreSQL starting with version 2.0
|
|
80
53
|
and serves as the "BDFL" of PyGreSQL.
|
|
81
54
|
Christoph Zwerschke volunteered as another maintainer and has been the main
|
|
82
|
-
contributor since version 3.
|
|
55
|
+
contributor since version 3.8 of PyGreSQL.
|
|
83
56
|
|
|
84
57
|
The following Python versions are supported:
|
|
85
58
|
|
|
@@ -87,8 +60,8 @@ The following Python versions are supported:
|
|
|
87
60
|
* PyGreSQL 5.x: Python 2 and Python 3
|
|
88
61
|
* PyGreSQL 6.x and newer: Python 3 only
|
|
89
62
|
|
|
90
|
-
The current version of PyGreSQL supports Python versions 3.
|
|
91
|
-
and PostgreSQL versions
|
|
63
|
+
The current version of PyGreSQL supports Python versions 3.8 to 3.14
|
|
64
|
+
and PostgreSQL versions 12 to 18 on the server.
|
|
92
65
|
|
|
93
66
|
Installation
|
|
94
67
|
------------
|
|
@@ -1,42 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: PyGreSQL
|
|
3
|
-
Version: 6.1
|
|
3
|
+
Version: 6.2.1
|
|
4
4
|
Summary: Python PostgreSQL interfaces
|
|
5
5
|
Home-page: https://pygresql.github.io/
|
|
6
6
|
Download-URL: https://pygresql.github.io/download/
|
|
7
7
|
Author: D'Arcy J. M. Cain
|
|
8
8
|
Author-email: "D'Arcy J. M. Cain" <darcy@pygresql.org>, Christoph Zwerschke <cito@online.de>
|
|
9
|
-
License:
|
|
10
|
-
|
|
11
|
-
Based heavily on code written by Pascal Andre (andre@chimay.via.ecp.fr)
|
|
12
|
-
|
|
13
|
-
Copyright (c) 1995, Pascal Andre
|
|
14
|
-
|
|
15
|
-
Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
|
|
16
|
-
|
|
17
|
-
Further modifications copyright (c) 2009-2024 by the PyGreSQL Development Team
|
|
18
|
-
|
|
19
|
-
PyGreSQL is released under the PostgreSQL License, a liberal Open Source
|
|
20
|
-
license, similar to the BSD or MIT licenses:
|
|
21
|
-
|
|
22
|
-
Permission to use, copy, modify, and distribute this software and its
|
|
23
|
-
documentation for any purpose, without fee, and without a written agreement
|
|
24
|
-
is hereby granted, provided that the above copyright notice and this
|
|
25
|
-
paragraph and the following two paragraphs appear in all copies. In
|
|
26
|
-
this license the term "AUTHORS" refers to anyone who has contributed code
|
|
27
|
-
to PyGreSQL.
|
|
28
|
-
|
|
29
|
-
IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
|
|
30
|
-
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
|
|
31
|
-
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
|
|
32
|
-
AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
-
|
|
34
|
-
THE AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
35
|
-
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
36
|
-
PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE
|
|
37
|
-
AUTHORS HAVE NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
|
|
38
|
-
ENHANCEMENTS, OR MODIFICATIONS.
|
|
39
|
-
|
|
9
|
+
License-Expression: PostgreSQL
|
|
40
10
|
Project-URL: Homepage, https://pygresql.github.io/
|
|
41
11
|
Project-URL: Documentation, https://pygresql.github.io/contents/
|
|
42
12
|
Project-URL: Source Code, https://github.com/PyGreSQL/PyGreSQL
|
|
@@ -47,25 +17,28 @@ Project-URL: Mailing List, https://mail.vex.net/mailman/listinfo/pygresql
|
|
|
47
17
|
Keywords: pygresql,postgresql,database,api,dbapi
|
|
48
18
|
Classifier: Development Status :: 6 - Mature
|
|
49
19
|
Classifier: Intended Audience :: Developers
|
|
50
|
-
Classifier: License :: OSI Approved :: PostgreSQL License
|
|
51
20
|
Classifier: Operating System :: OS Independent
|
|
52
21
|
Classifier: Programming Language :: C
|
|
53
22
|
Classifier: Programming Language :: Python
|
|
54
23
|
Classifier: Programming Language :: Python :: 3
|
|
55
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
56
24
|
Classifier: Programming Language :: Python :: 3.8
|
|
57
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
58
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
59
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
60
28
|
Classifier: Programming Language :: Python :: 3.12
|
|
61
29
|
Classifier: Programming Language :: Python :: 3.13
|
|
30
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
62
31
|
Classifier: Programming Language :: SQL
|
|
63
32
|
Classifier: Topic :: Database
|
|
64
33
|
Classifier: Topic :: Database :: Front-Ends
|
|
65
34
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
66
|
-
Requires-Python: >=3.
|
|
35
|
+
Requires-Python: >=3.8
|
|
67
36
|
Description-Content-Type: text/x-rst
|
|
68
37
|
License-File: LICENSE.txt
|
|
38
|
+
Dynamic: author
|
|
39
|
+
Dynamic: download-url
|
|
40
|
+
Dynamic: home-page
|
|
41
|
+
Dynamic: license-file
|
|
69
42
|
|
|
70
43
|
PyGreSQL - Python interface for PostgreSQL
|
|
71
44
|
==========================================
|
|
@@ -79,7 +52,7 @@ It is based on the PyGres95 code written by Pascal Andre.
|
|
|
79
52
|
D'Arcy J. M. Cain renamed it to PyGreSQL starting with version 2.0
|
|
80
53
|
and serves as the "BDFL" of PyGreSQL.
|
|
81
54
|
Christoph Zwerschke volunteered as another maintainer and has been the main
|
|
82
|
-
contributor since version 3.
|
|
55
|
+
contributor since version 3.8 of PyGreSQL.
|
|
83
56
|
|
|
84
57
|
The following Python versions are supported:
|
|
85
58
|
|
|
@@ -87,8 +60,8 @@ The following Python versions are supported:
|
|
|
87
60
|
* PyGreSQL 5.x: Python 2 and Python 3
|
|
88
61
|
* PyGreSQL 6.x and newer: Python 3 only
|
|
89
62
|
|
|
90
|
-
The current version of PyGreSQL supports Python versions 3.
|
|
91
|
-
and PostgreSQL versions
|
|
63
|
+
The current version of PyGreSQL supports Python versions 3.8 to 3.14
|
|
64
|
+
and PostgreSQL versions 12 to 18 on the server.
|
|
92
65
|
|
|
93
66
|
Installation
|
|
94
67
|
------------
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,7 +10,7 @@ It is based on the PyGres95 code written by Pascal Andre.
|
|
|
10
10
|
D'Arcy J. M. Cain renamed it to PyGreSQL starting with version 2.0
|
|
11
11
|
and serves as the "BDFL" of PyGreSQL.
|
|
12
12
|
Christoph Zwerschke volunteered as another maintainer and has been the main
|
|
13
|
-
contributor since version 3.
|
|
13
|
+
contributor since version 3.8 of PyGreSQL.
|
|
14
14
|
|
|
15
15
|
The following Python versions are supported:
|
|
16
16
|
|
|
@@ -18,8 +18,8 @@ The following Python versions are supported:
|
|
|
18
18
|
* PyGreSQL 5.x: Python 2 and Python 3
|
|
19
19
|
* PyGreSQL 6.x and newer: Python 3 only
|
|
20
20
|
|
|
21
|
-
The current version of PyGreSQL supports Python versions 3.
|
|
22
|
-
and PostgreSQL versions
|
|
21
|
+
The current version of PyGreSQL supports Python versions 3.8 to 3.14
|
|
22
|
+
and PostgreSQL versions 12 to 18 on the server.
|
|
23
23
|
|
|
24
24
|
Installation
|
|
25
25
|
------------
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ powerful PostgreSQL features from Python.
|
|
|
8
8
|
|
|
9
9
|
| This software is copyright © 1995, Pascal Andre.
|
|
10
10
|
| Further modifications are copyright © 1997-2008 by D'Arcy J.M. Cain.
|
|
11
|
-
| Further modifications are copyright © 2009-
|
|
11
|
+
| Further modifications are copyright © 2009-2025 by the PyGreSQL team.
|
|
12
12
|
| For licensing details, see the full :doc:`copyright`.
|
|
13
13
|
|
|
14
14
|
**PostgreSQL** is a highly scalable, SQL compliant, open source
|
|
@@ -39,6 +39,6 @@ on the PyGres95 code written by Pascal Andre (andre@chimay.via.ecp.fr).
|
|
|
39
39
|
D'Arcy (darcy@druid.net) renamed it to PyGreSQL starting with
|
|
40
40
|
version 2.0 and serves as the "BDFL" of PyGreSQL.
|
|
41
41
|
|
|
42
|
-
The current version PyGreSQL |version| needs PostgreSQL
|
|
43
|
-
3.
|
|
42
|
+
The current version PyGreSQL |version| needs PostgreSQL 12 to 18, and Python
|
|
43
|
+
3.8 to 3.14. If you need to support older PostgreSQL or Python versions,
|
|
44
44
|
you can resort to the PyGreSQL 5.x versions that still support them.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
ChangeLog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
Version 6.2.1 (2025-12-27)
|
|
5
|
+
--------------------------
|
|
6
|
+
- Made setup cleaner and work with a wider range of setuptools versions (#90).
|
|
7
|
+
- The `inserttable()` method in the `pg` module now supports an optional
|
|
8
|
+
`freeze` parameter to optimize initial bulk loading (#81).
|
|
9
|
+
|
|
10
|
+
Version 6.2.0 (2025-12-21)
|
|
11
|
+
--------------------------
|
|
12
|
+
- Added support for Python 3.14 and PostgreSQL 18.
|
|
13
|
+
- Removed support for Python versions older than 3.8 (released October 2019)
|
|
14
|
+
and PostgreSQL older than version 12 (released October 2019).
|
|
15
|
+
- Fixed `set_parameter()` for values containing special characters.
|
|
16
|
+
|
|
4
17
|
Version 6.1.0 (2024-12-05)
|
|
5
18
|
--------------------------
|
|
6
19
|
- Support Python 3.13 and PostgreSQL 17.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ On Windows, you also need to make sure that the directory that contains
|
|
|
14
14
|
``libpq.dll`` is part of your ``PATH`` environment variable.
|
|
15
15
|
|
|
16
16
|
The current version of PyGreSQL has been tested with Python versions
|
|
17
|
-
3.
|
|
17
|
+
3.8 to 3.14, and PostgreSQL versions 12 to 18.
|
|
18
18
|
|
|
19
19
|
PyGreSQL will be installed as two packages named ``pg`` (for the classic
|
|
20
20
|
interface) and ``pgdb`` (for the DB API 2 compliant interface). The former
|
|
File without changes
|
|
@@ -478,13 +478,14 @@ first, otherwise :meth:`Connection.getnotify` will always return ``None``.
|
|
|
478
478
|
inserttable -- insert an iterable into a table
|
|
479
479
|
----------------------------------------------
|
|
480
480
|
|
|
481
|
-
.. method:: Connection.inserttable(table, values, [columns])
|
|
481
|
+
.. method:: Connection.inserttable(table, values, [columns], *, freeze=False)
|
|
482
482
|
|
|
483
483
|
Insert a Python iterable into a database table
|
|
484
484
|
|
|
485
485
|
:param str table: the table name
|
|
486
486
|
:param list values: iterable of row values, which must be lists or tuples
|
|
487
487
|
:param list columns: list or tuple of column names
|
|
488
|
+
:param bool freeze: if True, immediately freeze the inserted rows
|
|
488
489
|
:rtype: int
|
|
489
490
|
:raises TypeError: invalid connection, bad argument type, or too many arguments
|
|
490
491
|
:raises MemoryError: insert buffer could not be allocated
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,7 +10,7 @@ Copyright (c) 1995, Pascal Andre
|
|
|
10
10
|
Further modifications copyright (c) 1997-2008 by D'Arcy J.M. Cain
|
|
11
11
|
(darcy@PyGreSQL.org)
|
|
12
12
|
|
|
13
|
-
Further modifications copyright (c) 2009-
|
|
13
|
+
Further modifications copyright (c) 2009-2025 by the PyGreSQL team.
|
|
14
14
|
|
|
15
15
|
Permission to use, copy, modify, and distribute this software and its
|
|
16
16
|
documentation for any purpose, without fee, and without a written agreement
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* The connection object - this file is part a of the C extension module.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c)
|
|
6
|
+
* Copyright (c) 2025 by the PyGreSQL Development Team
|
|
7
7
|
*
|
|
8
8
|
* Please see the LICENSE.TXT file for specific restrictions.
|
|
9
9
|
*/
|
|
@@ -708,28 +708,34 @@ conn_is_non_blocking(connObject *self, PyObject *noargs)
|
|
|
708
708
|
static char conn_inserttable__doc__[] =
|
|
709
709
|
"inserttable(table, data, [columns]) -- insert iterable into table\n\n"
|
|
710
710
|
"The fields in the iterable must be in the same order as in the table\n"
|
|
711
|
-
"or in the list or tuple of columns if one is specified.\n"
|
|
711
|
+
"or in the list or tuple of columns if one is specified.\n\n"
|
|
712
|
+
"If the optional argument 'freeze' is set to True, the inserted rows\n"
|
|
713
|
+
"will be immediately frozen (can be useful for initial bulk loads).\n";
|
|
712
714
|
|
|
713
715
|
static PyObject *
|
|
714
|
-
conn_inserttable(connObject *self, PyObject *args)
|
|
716
|
+
conn_inserttable(connObject *self, PyObject *args, PyObject *kwds)
|
|
715
717
|
{
|
|
716
718
|
PGresult *result;
|
|
717
719
|
char *table, *buffer, *bufpt, *bufmax, *s, *t;
|
|
718
|
-
int encoding, ret;
|
|
720
|
+
int freeze = 0, encoding, ret;
|
|
719
721
|
size_t bufsiz;
|
|
720
722
|
PyObject *rows, *iter_row, *item, *columns = NULL;
|
|
721
723
|
Py_ssize_t i, j, m, n;
|
|
722
724
|
|
|
725
|
+
static char *kwlist[] = {"table", "data", "columns", "freeze", NULL};
|
|
726
|
+
|
|
723
727
|
if (!self->cnx) {
|
|
724
728
|
PyErr_SetString(PyExc_TypeError, "Connection is not valid");
|
|
725
729
|
return NULL;
|
|
726
730
|
}
|
|
727
731
|
|
|
728
732
|
/* gets arguments */
|
|
729
|
-
if (!
|
|
733
|
+
if (!PyArg_ParseTupleAndKeywords(args, kwds, "sO|O$p", kwlist, &table,
|
|
734
|
+
&rows, &columns, &freeze)) {
|
|
730
735
|
PyErr_SetString(
|
|
731
736
|
PyExc_TypeError,
|
|
732
|
-
"Method inserttable() expects a string
|
|
737
|
+
"Method inserttable() expects a string, an iterable, an optional "
|
|
738
|
+
"list/tuple and an optional boolean 'freeze' as arguments");
|
|
733
739
|
return NULL;
|
|
734
740
|
}
|
|
735
741
|
|
|
@@ -834,7 +840,11 @@ conn_inserttable(connObject *self, PyObject *args)
|
|
|
834
840
|
}
|
|
835
841
|
}
|
|
836
842
|
if (bufpt < bufmax)
|
|
837
|
-
snprintf(bufpt, (size_t)(bufmax - bufpt), " from stdin");
|
|
843
|
+
bufpt += snprintf(bufpt, (size_t)(bufmax - bufpt), " from stdin");
|
|
844
|
+
if (freeze && bufpt < bufmax) {
|
|
845
|
+
bufpt += snprintf(bufpt, (size_t)(bufmax - bufpt), " freeze");
|
|
846
|
+
}
|
|
847
|
+
|
|
838
848
|
if (bufpt >= bufmax) {
|
|
839
849
|
PyMem_Free(buffer);
|
|
840
850
|
Py_DECREF(iter_row);
|
|
@@ -1753,8 +1763,8 @@ static struct PyMethodDef conn_methods[] = {
|
|
|
1753
1763
|
conn_set_notice_receiver__doc__},
|
|
1754
1764
|
{"getnotify", (PyCFunction)conn_get_notify, METH_NOARGS,
|
|
1755
1765
|
conn_get_notify__doc__},
|
|
1756
|
-
{"inserttable", (PyCFunction)conn_inserttable,
|
|
1757
|
-
conn_inserttable__doc__},
|
|
1766
|
+
{"inserttable", (PyCFunction)conn_inserttable,
|
|
1767
|
+
METH_VARARGS | METH_KEYWORDS, conn_inserttable__doc__},
|
|
1758
1768
|
{"transaction", (PyCFunction)conn_transaction, METH_NOARGS,
|
|
1759
1769
|
conn_transaction__doc__},
|
|
1760
1770
|
{"parameter", (PyCFunction)conn_parameter, METH_VARARGS,
|