PyGreSQL 6.2.2__tar.gz → 6.3.0b1__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.
Files changed (123) hide show
  1. {pygresql-6.2.2 → pygresql-6.3.0b1}/LICENSE.txt +1 -1
  2. {pygresql-6.2.2 → pygresql-6.3.0b1}/MANIFEST.in +1 -1
  3. {pygresql-6.2.2 → pygresql-6.3.0b1}/PKG-INFO +14 -18
  4. {pygresql-6.2.2 → pygresql-6.3.0b1}/PyGreSQL.egg-info/PKG-INFO +14 -18
  5. {pygresql-6.2.2 → pygresql-6.3.0b1}/PyGreSQL.egg-info/SOURCES.txt +5 -1
  6. {pygresql-6.2.2 → pygresql-6.3.0b1}/README.rst +10 -7
  7. pygresql-6.3.0b1/docs/about.rst +42 -0
  8. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/community/homes.rst +3 -3
  9. pygresql-6.3.0b1/docs/community/index.rst +21 -0
  10. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/community/source.rst +1 -1
  11. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/community/support.rst +4 -4
  12. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/conf.py +17 -18
  13. pygresql-6.3.0b1/docs/contents/changelog.rst +918 -0
  14. pygresql-6.3.0b1/docs/contents/examples.rst +11 -0
  15. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/general.rst +5 -9
  16. pygresql-6.3.0b1/docs/contents/install.rst +172 -0
  17. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/adaptation.rst +250 -30
  18. pygresql-6.3.0b1/docs/contents/pg/connection.rst +1150 -0
  19. pygresql-6.3.0b1/docs/contents/pg/db_types.rst +173 -0
  20. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/db_wrapper.rst +399 -129
  21. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/introduction.rst +5 -4
  22. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/large_objects.rst +46 -35
  23. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/module.rst +333 -144
  24. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/notification.rst +16 -10
  25. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/query.rst +35 -13
  26. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pgdb/adaptation.rst +87 -11
  27. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pgdb/connection.rst +35 -5
  28. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pgdb/cursor.rst +137 -41
  29. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pgdb/introduction.rst +1 -1
  30. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pgdb/module.rst +44 -17
  31. pygresql-6.3.0b1/docs/contents/pgdb/typecache.rst +149 -0
  32. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pgdb/types.rst +21 -8
  33. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/postgres/advanced.rst +28 -21
  34. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/postgres/basic.rst +31 -15
  35. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/postgres/func.rst +21 -14
  36. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/postgres/syscat.rst +10 -19
  37. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/tutorial.rst +28 -26
  38. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/copyright.rst +5 -3
  39. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/download/download.rst +3 -7
  40. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/download/files.rst +3 -3
  41. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/download/index.rst +2 -3
  42. pygresql-6.3.0b1/docs/index.rst +11 -0
  43. pygresql-6.3.0b1/docs/requirements.txt +1 -0
  44. pygresql-6.3.0b1/ext/pgconn.c +2770 -0
  45. {pygresql-6.2.2 → pygresql-6.3.0b1}/ext/pginternal.c +708 -215
  46. pygresql-6.3.0b1/ext/pginternal.h +123 -0
  47. {pygresql-6.2.2 → pygresql-6.3.0b1}/ext/pglarge.c +123 -92
  48. {pygresql-6.2.2 → pygresql-6.3.0b1}/ext/pgmodule.c +436 -553
  49. pygresql-6.3.0b1/ext/pgmodule.h +182 -0
  50. pygresql-6.3.0b1/ext/pgnotice.c +66 -0
  51. pygresql-6.3.0b1/ext/pgquery.c +1373 -0
  52. {pygresql-6.2.2 → pygresql-6.3.0b1}/ext/pgsource.c +268 -195
  53. {pygresql-6.2.2 → pygresql-6.3.0b1}/ext/pgtypes.h +5 -0
  54. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/__init__.py +8 -2
  55. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/_pg.pyi +201 -101
  56. pygresql-6.3.0b1/pg/adapt.py +1033 -0
  57. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/attrs.py +7 -13
  58. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/cast.py +124 -26
  59. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/core.py +5 -3
  60. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/db.py +392 -343
  61. pygresql-6.3.0b1/pg/helpers.py +283 -0
  62. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/notify.py +26 -17
  63. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/tz.py +1 -1
  64. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/__init__.py +20 -49
  65. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/adapt.py +87 -19
  66. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/cast.py +264 -83
  67. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/connect.py +4 -5
  68. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/connection.py +22 -14
  69. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/cursor.py +325 -109
  70. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/typecode.py +8 -2
  71. {pygresql-6.2.2 → pygresql-6.3.0b1}/pyproject.toml +62 -11
  72. {pygresql-6.2.2 → pygresql-6.3.0b1}/setup.py +64 -91
  73. pygresql-6.3.0b1/stubtest_allowlist.txt +6 -0
  74. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/__init__.py +10 -0
  75. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/config.py +8 -5
  76. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/dbapi20.py +1 -1
  77. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_classic.py +0 -1
  78. pygresql-6.3.0b1/tests/test_classic_connection.py +6687 -0
  79. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_classic_dbwrapper.py +2374 -588
  80. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_classic_functions.py +531 -19
  81. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_classic_largeobj.py +159 -0
  82. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_classic_notification.py +67 -7
  83. pygresql-6.3.0b1/tests/test_classic_refcount.py +417 -0
  84. pygresql-6.3.0b1/tests/test_dbapi20.py +2937 -0
  85. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_dbapi20_copy.py +47 -5
  86. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_tutorial.py +4 -5
  87. pygresql-6.3.0b1/tox.ini +173 -0
  88. pygresql-6.2.2/PyGreSQL.egg-info/not-zip-safe +0 -1
  89. pygresql-6.2.2/docs/about.rst +0 -44
  90. pygresql-6.2.2/docs/community/index.rst +0 -17
  91. pygresql-6.2.2/docs/contents/changelog.rst +0 -751
  92. pygresql-6.2.2/docs/contents/examples.rst +0 -17
  93. pygresql-6.2.2/docs/contents/install.rst +0 -214
  94. pygresql-6.2.2/docs/contents/pg/connection.rst +0 -759
  95. pygresql-6.2.2/docs/contents/pg/db_types.rst +0 -96
  96. pygresql-6.2.2/docs/contents/pgdb/typecache.rst +0 -90
  97. pygresql-6.2.2/docs/requirements.txt +0 -1
  98. pygresql-6.2.2/ext/pgconn.c +0 -1806
  99. pygresql-6.2.2/ext/pgnotice.c +0 -121
  100. pygresql-6.2.2/ext/pgquery.c +0 -1001
  101. pygresql-6.2.2/pg/adapt.py +0 -687
  102. pygresql-6.2.2/pg/helpers.py +0 -124
  103. pygresql-6.2.2/tests/test_classic_connection.py +0 -2743
  104. pygresql-6.2.2/tests/test_dbapi20.py +0 -1431
  105. pygresql-6.2.2/tox.ini +0 -66
  106. {pygresql-6.2.2 → pygresql-6.3.0b1}/PyGreSQL.egg-info/dependency_links.txt +0 -0
  107. {pygresql-6.2.2 → pygresql-6.3.0b1}/PyGreSQL.egg-info/top_level.txt +0 -0
  108. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/Makefile +0 -0
  109. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/_static/favicon.ico +0 -0
  110. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/_static/pygresql.png +0 -0
  111. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/community/issues.rst +0 -0
  112. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/community/mailinglist.rst +0 -0
  113. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/index.rst +0 -0
  114. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pg/index.rst +0 -0
  115. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/pgdb/index.rst +0 -0
  116. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/contents/postgres/index.rst +0 -0
  117. {pygresql-6.2.2 → pygresql-6.3.0b1}/docs/make.bat +0 -0
  118. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/error.py +0 -0
  119. {pygresql-6.2.2 → pygresql-6.3.0b1}/pg/py.typed +0 -0
  120. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/constants.py +0 -0
  121. {pygresql-6.2.2 → pygresql-6.3.0b1}/pgdb/py.typed +0 -0
  122. {pygresql-6.2.2 → pygresql-6.3.0b1}/setup.cfg +0 -0
  123. {pygresql-6.2.2 → pygresql-6.3.0b1}/tests/test_classic_attrdict.py +0 -0
@@ -1,4 +1,4 @@
1
- Written by D'Arcy J.M. Cain (darcy@PyGreSQL.org)
1
+ Written by D'Arcy J.M. Cain (darcy@pygresql.org)
2
2
 
3
3
  Based heavily on code written by Pascal Andre (andre@chimay.via.ecp.fr)
4
4
 
@@ -12,6 +12,7 @@ include README.rst
12
12
  include LICENSE.txt
13
13
 
14
14
  include tox.ini
15
+ include stubtest_allowlist.txt
15
16
  include pyproject.toml
16
17
 
17
18
  include docs/Makefile
@@ -19,7 +20,6 @@ include docs/make.bat
19
20
  include docs/*.py
20
21
  include docs/*.rst
21
22
  include docs/*.txt
22
- exclude docs/index.rst
23
23
  recursive-include docs/community *.rst
24
24
  recursive-include docs/contents *.rst
25
25
  recursive-include docs/download *.rst
@@ -1,11 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyGreSQL
3
- Version: 6.2.2
3
+ Version: 6.3.0b1
4
4
  Summary: Python PostgreSQL interfaces
5
- Home-page: https://pygresql.github.io/
6
- Download-URL: https://pygresql.github.io/download/
7
- Author: D'Arcy J. M. Cain
8
- Author-email: "D'Arcy J. M. Cain" <darcy@pygresql.org>, Christoph Zwerschke <cito@online.de>
5
+ Author-email: "D'Arcy J.M. Cain" <darcy@pygresql.org>, Christoph Zwerschke <cito@online.de>
9
6
  License-Expression: PostgreSQL
10
7
  Project-URL: Homepage, https://pygresql.github.io/
11
8
  Project-URL: Documentation, https://pygresql.github.io/contents/
@@ -21,23 +18,19 @@ Classifier: Operating System :: OS Independent
21
18
  Classifier: Programming Language :: C
22
19
  Classifier: Programming Language :: Python
23
20
  Classifier: Programming Language :: Python :: 3
24
- Classifier: Programming Language :: Python :: 3.8
25
- Classifier: Programming Language :: Python :: 3.9
26
21
  Classifier: Programming Language :: Python :: 3.10
27
22
  Classifier: Programming Language :: Python :: 3.11
28
23
  Classifier: Programming Language :: Python :: 3.12
29
24
  Classifier: Programming Language :: Python :: 3.13
30
25
  Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: 3.15
31
27
  Classifier: Programming Language :: SQL
32
28
  Classifier: Topic :: Database
33
29
  Classifier: Topic :: Database :: Front-Ends
34
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
35
- Requires-Python: >=3.8
31
+ Requires-Python: >=3.10
36
32
  Description-Content-Type: text/x-rst
37
33
  License-File: LICENSE.txt
38
- Dynamic: author
39
- Dynamic: download-url
40
- Dynamic: home-page
41
34
  Dynamic: license-file
42
35
 
43
36
  PyGreSQL - Python interface for PostgreSQL
@@ -47,11 +40,11 @@ PyGreSQL is a Python module that interfaces to a PostgreSQL database.
47
40
  It wraps the lower level C API library libpq to allow easy use of the
48
41
  powerful PostgreSQL features from Python.
49
42
 
50
- PyGreSQL should run on most platforms where PostgreSQL and Python is running.
43
+ PyGreSQL should run on most platforms where PostgreSQL and Python are running.
51
44
  It is based on the PyGres95 code written by Pascal Andre.
52
- D'Arcy J. M. Cain renamed it to PyGreSQL starting with version 2.0
45
+ D'Arcy J.M. Cain renamed it to PyGreSQL starting with version 2.0
53
46
  and serves as the "BDFL" of PyGreSQL.
54
- Christoph Zwerschke volunteered as another maintainer and has been the main
47
+ Christoph Zwerschke volunteered as another maintainer and has been the main
55
48
  contributor since version 3.8 of PyGreSQL.
56
49
 
57
50
  The following Python versions are supported:
@@ -60,8 +53,8 @@ The following Python versions are supported:
60
53
  * PyGreSQL 5.x: Python 2 and Python 3
61
54
  * PyGreSQL 6.x and newer: Python 3 only
62
55
 
63
- The current version of PyGreSQL supports Python versions 3.8 to 3.14
64
- and PostgreSQL versions 12 to 18 on the server.
56
+ The current version of PyGreSQL supports Python versions 3.10 to 3.15
57
+ and PostgreSQL versions 12 to 19 on the server.
65
58
 
66
59
  Installation
67
60
  ------------
@@ -74,12 +67,15 @@ For other ways of installing PyGreSQL and requirements,
74
67
  see the documentation.
75
68
 
76
69
  Note that PyGreSQL also requires the libpq shared library to be
77
- installed and accessible on the client machine.
70
+ installed and accessible on the client machine. Pre-compiled wheels are
71
+ currently only available for Windows. On other platforms, pip builds PyGreSQL
72
+ from the source distribution, which needs a C compiler, the Python
73
+ header files, and the libpq header files with the pg_config tool.
78
74
 
79
75
  Documentation
80
76
  -------------
81
77
 
82
78
  The documentation is available at
83
- `pygresql.github.io/ <http://pygresql.github.io/>`_ and at
79
+ `pygresql.github.io <https://pygresql.github.io/>`_ and at
84
80
  `pygresql.readthedocs.io <https://pygresql.readthedocs.io/>`_,
85
81
  where you can also find the documentation for older versions.
@@ -1,11 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyGreSQL
3
- Version: 6.2.2
3
+ Version: 6.3.0b1
4
4
  Summary: Python PostgreSQL interfaces
5
- Home-page: https://pygresql.github.io/
6
- Download-URL: https://pygresql.github.io/download/
7
- Author: D'Arcy J. M. Cain
8
- Author-email: "D'Arcy J. M. Cain" <darcy@pygresql.org>, Christoph Zwerschke <cito@online.de>
5
+ Author-email: "D'Arcy J.M. Cain" <darcy@pygresql.org>, Christoph Zwerschke <cito@online.de>
9
6
  License-Expression: PostgreSQL
10
7
  Project-URL: Homepage, https://pygresql.github.io/
11
8
  Project-URL: Documentation, https://pygresql.github.io/contents/
@@ -21,23 +18,19 @@ Classifier: Operating System :: OS Independent
21
18
  Classifier: Programming Language :: C
22
19
  Classifier: Programming Language :: Python
23
20
  Classifier: Programming Language :: Python :: 3
24
- Classifier: Programming Language :: Python :: 3.8
25
- Classifier: Programming Language :: Python :: 3.9
26
21
  Classifier: Programming Language :: Python :: 3.10
27
22
  Classifier: Programming Language :: Python :: 3.11
28
23
  Classifier: Programming Language :: Python :: 3.12
29
24
  Classifier: Programming Language :: Python :: 3.13
30
25
  Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: 3.15
31
27
  Classifier: Programming Language :: SQL
32
28
  Classifier: Topic :: Database
33
29
  Classifier: Topic :: Database :: Front-Ends
34
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
35
- Requires-Python: >=3.8
31
+ Requires-Python: >=3.10
36
32
  Description-Content-Type: text/x-rst
37
33
  License-File: LICENSE.txt
38
- Dynamic: author
39
- Dynamic: download-url
40
- Dynamic: home-page
41
34
  Dynamic: license-file
42
35
 
43
36
  PyGreSQL - Python interface for PostgreSQL
@@ -47,11 +40,11 @@ PyGreSQL is a Python module that interfaces to a PostgreSQL database.
47
40
  It wraps the lower level C API library libpq to allow easy use of the
48
41
  powerful PostgreSQL features from Python.
49
42
 
50
- PyGreSQL should run on most platforms where PostgreSQL and Python is running.
43
+ PyGreSQL should run on most platforms where PostgreSQL and Python are running.
51
44
  It is based on the PyGres95 code written by Pascal Andre.
52
- D'Arcy J. M. Cain renamed it to PyGreSQL starting with version 2.0
45
+ D'Arcy J.M. Cain renamed it to PyGreSQL starting with version 2.0
53
46
  and serves as the "BDFL" of PyGreSQL.
54
- Christoph Zwerschke volunteered as another maintainer and has been the main
47
+ Christoph Zwerschke volunteered as another maintainer and has been the main
55
48
  contributor since version 3.8 of PyGreSQL.
56
49
 
57
50
  The following Python versions are supported:
@@ -60,8 +53,8 @@ The following Python versions are supported:
60
53
  * PyGreSQL 5.x: Python 2 and Python 3
61
54
  * PyGreSQL 6.x and newer: Python 3 only
62
55
 
63
- The current version of PyGreSQL supports Python versions 3.8 to 3.14
64
- and PostgreSQL versions 12 to 18 on the server.
56
+ The current version of PyGreSQL supports Python versions 3.10 to 3.15
57
+ and PostgreSQL versions 12 to 19 on the server.
65
58
 
66
59
  Installation
67
60
  ------------
@@ -74,12 +67,15 @@ For other ways of installing PyGreSQL and requirements,
74
67
  see the documentation.
75
68
 
76
69
  Note that PyGreSQL also requires the libpq shared library to be
77
- installed and accessible on the client machine.
70
+ installed and accessible on the client machine. Pre-compiled wheels are
71
+ currently only available for Windows. On other platforms, pip builds PyGreSQL
72
+ from the source distribution, which needs a C compiler, the Python
73
+ header files, and the libpq header files with the pg_config tool.
78
74
 
79
75
  Documentation
80
76
  -------------
81
77
 
82
78
  The documentation is available at
83
- `pygresql.github.io/ <http://pygresql.github.io/>`_ and at
79
+ `pygresql.github.io <https://pygresql.github.io/>`_ and at
84
80
  `pygresql.readthedocs.io <https://pygresql.readthedocs.io/>`_,
85
81
  where you can also find the documentation for older versions.
@@ -3,16 +3,17 @@ MANIFEST.in
3
3
  README.rst
4
4
  pyproject.toml
5
5
  setup.py
6
+ stubtest_allowlist.txt
6
7
  tox.ini
7
8
  PyGreSQL.egg-info/PKG-INFO
8
9
  PyGreSQL.egg-info/SOURCES.txt
9
10
  PyGreSQL.egg-info/dependency_links.txt
10
- PyGreSQL.egg-info/not-zip-safe
11
11
  PyGreSQL.egg-info/top_level.txt
12
12
  docs/Makefile
13
13
  docs/about.rst
14
14
  docs/conf.py
15
15
  docs/copyright.rst
16
+ docs/index.rst
16
17
  docs/make.bat
17
18
  docs/requirements.txt
18
19
  docs/_static/favicon.ico
@@ -57,8 +58,10 @@ docs/download/files.rst
57
58
  docs/download/index.rst
58
59
  ext/pgconn.c
59
60
  ext/pginternal.c
61
+ ext/pginternal.h
60
62
  ext/pglarge.c
61
63
  ext/pgmodule.c
64
+ ext/pgmodule.h
62
65
  ext/pgnotice.c
63
66
  ext/pgquery.c
64
67
  ext/pgsource.c
@@ -94,6 +97,7 @@ tests/test_classic_dbwrapper.py
94
97
  tests/test_classic_functions.py
95
98
  tests/test_classic_largeobj.py
96
99
  tests/test_classic_notification.py
100
+ tests/test_classic_refcount.py
97
101
  tests/test_dbapi20.py
98
102
  tests/test_dbapi20_copy.py
99
103
  tests/test_tutorial.py
@@ -5,11 +5,11 @@ PyGreSQL is a Python module that interfaces to a PostgreSQL database.
5
5
  It wraps the lower level C API library libpq to allow easy use of the
6
6
  powerful PostgreSQL features from Python.
7
7
 
8
- PyGreSQL should run on most platforms where PostgreSQL and Python is running.
8
+ PyGreSQL should run on most platforms where PostgreSQL and Python are running.
9
9
  It is based on the PyGres95 code written by Pascal Andre.
10
- D'Arcy J. M. Cain renamed it to PyGreSQL starting with version 2.0
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
- Christoph Zwerschke volunteered as another maintainer and has been the main
12
+ Christoph Zwerschke volunteered as another maintainer and has been the main
13
13
  contributor since version 3.8 of PyGreSQL.
14
14
 
15
15
  The following Python versions are supported:
@@ -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.8 to 3.14
22
- and PostgreSQL versions 12 to 18 on the server.
21
+ The current version of PyGreSQL supports Python versions 3.10 to 3.15
22
+ and PostgreSQL versions 12 to 19 on the server.
23
23
 
24
24
  Installation
25
25
  ------------
@@ -32,12 +32,15 @@ For other ways of installing PyGreSQL and requirements,
32
32
  see the documentation.
33
33
 
34
34
  Note that PyGreSQL also requires the libpq shared library to be
35
- installed and accessible on the client machine.
35
+ installed and accessible on the client machine. Pre-compiled wheels are
36
+ currently only available for Windows. On other platforms, pip builds PyGreSQL
37
+ from the source distribution, which needs a C compiler, the Python
38
+ header files, and the libpq header files with the pg_config tool.
36
39
 
37
40
  Documentation
38
41
  -------------
39
42
 
40
43
  The documentation is available at
41
- `pygresql.github.io/ <http://pygresql.github.io/>`_ and at
44
+ `pygresql.github.io <https://pygresql.github.io/>`_ and at
42
45
  `pygresql.readthedocs.io <https://pygresql.readthedocs.io/>`_,
43
46
  where you can also find the documentation for older versions.
@@ -0,0 +1,42 @@
1
+ About PyGreSQL
2
+ ==============
3
+
4
+ **PyGreSQL** is an *open-source* `Python <https://www.python.org>`_ module
5
+ that interfaces to a `PostgreSQL <https://www.postgresql.org>`_ database.
6
+ It wraps the lower level C API library libpq to allow easy use of the
7
+ powerful PostgreSQL features from Python.
8
+
9
+ | This software is copyright © 1995, Pascal Andre.
10
+ | Further modifications are copyright © 1997-2008 by D'Arcy J.M. Cain.
11
+ | Further modifications are copyright © 2009-2026
12
+ by the PyGreSQL Development Team.
13
+ | For licensing details, see the full :doc:`copyright`.
14
+
15
+ **PostgreSQL** is a highly scalable, SQL compliant, open source
16
+ object-relational database management system. With more than 35 years
17
+ of active development, it has become one of the most widely used databases
18
+ for enterprise level open source solutions. Best of all, PostgreSQL's
19
+ source code is available under the PostgreSQL License, a liberal open
20
+ source license similar to the BSD or MIT licenses.
21
+
22
+ **Python** is an interpreted, interactive, object-oriented
23
+ programming language. It is often compared to Tcl, Perl, Scheme or Java.
24
+ Python combines remarkable power with very clear syntax. It has modules,
25
+ classes, exceptions, very high level dynamic data types, and dynamic typing.
26
+ There are interfaces to many system calls and libraries, as well as to
27
+ various windowing systems (X11, Motif, Tk, Mac, MFC). New built-in modules
28
+ are easily written in C or C++. Python is also usable as an extension
29
+ language for applications that need a programmable interface.
30
+ The Python implementation is copyrighted but freely usable and distributable,
31
+ even for commercial use.
32
+
33
+ **PyGreSQL** runs on most platforms where PostgreSQL and Python are
34
+ running. It is based on the PyGres95 code written by Pascal Andre
35
+ (andre@chimay.via.ecp.fr). D'Arcy (darcy@pygresql.org) renamed it to PyGreSQL
36
+ starting with version 2.0 and serves as the "BDFL" of PyGreSQL.
37
+
38
+ The current version PyGreSQL |version| needs PostgreSQL 12 to 19, and Python
39
+ 3.10 to 3.15. If you need to support Python 3.8 or 3.9, you can resort to
40
+ PyGreSQL 6.2.x. For older PostgreSQL or Python versions, you can resort to
41
+ older PyGreSQL versions, e.g. 6.1.x for PostgreSQL 10 and 11 or Python 3.7,
42
+ and 5.x for even older versions.
@@ -2,10 +2,10 @@ Project home sites
2
2
  ------------------
3
3
 
4
4
  **Python**:
5
- http://www.python.org
5
+ https://www.python.org
6
6
 
7
7
  **PostgreSQL**:
8
- http://www.postgresql.org
8
+ https://www.postgresql.org
9
9
 
10
10
  **PyGreSQL**:
11
- http://www.pygresql.org
11
+ https://www.pygresql.org
@@ -0,0 +1,21 @@
1
+ PyGreSQL Development and Support
2
+ ================================
3
+
4
+ PyGreSQL is an open-source project created by a group of volunteers.
5
+ The source code and the issue tracker are hosted on GitHub, and the
6
+ documentation is published on GitHub Pages and Read the Docs.
7
+ The current maintainers are D'Arcy J.M. Cain (who also provides the
8
+ mailing list and the pygresql.org domain) and Christoph Zwerschke (who tries
9
+ to keep the code up to date and fix reported issues).
10
+ We would be glad to welcome more contributors so that PyGreSQL can be
11
+ further developed, modernized and improved.
12
+
13
+ .. include:: mailinglist.rst
14
+
15
+ .. include:: source.rst
16
+
17
+ .. include:: issues.rst
18
+
19
+ .. include:: support.rst
20
+
21
+ .. include:: homes.rst
@@ -16,4 +16,4 @@ Contributions can be proposed as
16
16
  Before starting to work on larger contributions,
17
17
  please discuss with the core developers using the
18
18
  `mailing list <https://mail.vex.net/mailman/listinfo/pygresql>`_
19
- or in a `GitHub issues <https://github.com/PyGreSQL/PyGreSQL/issues/>`_.
19
+ or in a `GitHub issue <https://github.com/PyGreSQL/PyGreSQL/issues/>`_.
@@ -2,10 +2,10 @@ Support
2
2
  -------
3
3
 
4
4
  **Python**:
5
- see http://www.python.org/community/
5
+ see https://www.python.org/community/
6
6
 
7
7
  **PostgreSQL**:
8
- see http://www.postgresql.org/support/
8
+ see https://www.postgresql.org/support/
9
9
 
10
10
  **PyGreSQL**:
11
11
  Join `the PyGreSQL mailing list <https://mail.vex.net/mailman/listinfo/pygresql>`_
@@ -19,5 +19,5 @@ Support
19
19
  not for questions about usage of PyGreSQL.
20
20
 
21
21
  Please note that messages to individual developers will generally not be
22
- answered directly. All questions, comments and code changes must be
23
- submitted to the mailing list for peer review and archiving purposes.
22
+ answered directly. Please ask questions on the mailing list, and use
23
+ GitHub for bug reports and pull requests.
@@ -7,7 +7,7 @@
7
7
  # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8
8
 
9
9
  project = 'PyGreSQL'
10
- author = 'The PyGreSQL team'
10
+ author = 'The PyGreSQL Development Team'
11
11
  copyright = '2026, ' + author
12
12
 
13
13
  def project_version():
@@ -25,7 +25,10 @@ language = 'en'
25
25
  # -- General configuration ---------------------------------------------------
26
26
  # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
27
27
 
28
- extensions = ['sphinx.ext.autodoc']
28
+ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
29
+
30
+ # link references to Python names to the Python documentation
31
+ intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
29
32
 
30
33
  templates_path = ['_templates']
31
34
  exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
@@ -39,33 +42,24 @@ exclude_patterns += [
39
42
  'community/homes.rst']
40
43
 
41
44
  # ignore certain warnings
42
- # (references to some of the Python names do not resolve correctly)
45
+ # (pseudo types and some names that are not documented as targets)
43
46
  nitpicky = True
44
47
  nitpick_ignore = [
45
48
  ('py:' + t, n) for t, names in {
46
49
  'attr': ('arraysize', 'error', 'sqlstate', 'DatabaseError.sqlstate'),
47
- 'class': ('bool', 'bytes', 'callable', 'callables', 'class',
48
- 'dict', 'float', 'function', 'int', 'iterable',
49
- 'list', 'object', 'set', 'str', 'tuple',
50
- 'False', 'True', 'None',
51
- 'namedtuple', 'namedtuples',
52
- 'decimal.Decimal',
53
- 'bytes/str', 'list of namedtuples', 'tuple of callables',
54
- 'first field', 'type of first field',
50
+ 'class': ('callable', 'callables', 'class', 'function', 'iterable',
51
+ 'False', 'namedtuple', 'namedtuples',
52
+ 'bytes/str', 'first field', 'path-like object',
55
53
  'Notice', 'DATETIME'),
56
54
  'data': ('defbase', 'defhost', 'defopt', 'defpasswd', 'defport',
57
55
  'defuser'),
58
- 'exc': ('Exception', 'IndexError', 'IOError', 'KeyError',
59
- 'MemoryError', 'SyntaxError', 'TypeError', 'ValueError',
60
- 'pg.InternalError', 'pg.InvalidResultError',
56
+ 'exc': ('pg.DatabaseError', 'pg.InterfaceError', 'pg.InternalError',
57
+ 'pg.InvalidResultError',
61
58
  'pg.MultipleResultsError', 'pg.NoResultError',
62
59
  'pg.OperationalError', 'pg.ProgrammingError'),
63
- 'func': ('len', 'json.dumps', 'json.loads'),
64
- 'meth': ('datetime.strptime',
65
- 'cur.execute',
60
+ 'meth': ('cur.execute',
66
61
  'DB.close', 'DB.connection_handler', 'DB.get_regtypes',
67
62
  'DB.inserttable', 'DB.reopen'),
68
- 'obj': ('False', 'True', 'None')
69
63
  }.items() for n in names]
70
64
 
71
65
 
@@ -78,5 +72,10 @@ html_static_path = ['_static']
78
72
 
79
73
  html_title = f'PyGreSQL {version}'
80
74
 
75
+ # the canonical location of the documentation (latest final release),
76
+ # also used by the copies of the main branch at pygresql.github.io and
77
+ # pygresql.readthedocs.io
78
+ html_baseurl = 'https://pygresql.org/'
79
+
81
80
  html_logo = '_static/pygresql.png'
82
81
  html_favicon = '_static/favicon.ico'