psycopg-binary 3.2.10__cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

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.

Potentially problematic release.


This version of psycopg-binary might be problematic. Click here for more details.

@@ -0,0 +1,14 @@
1
+ """
2
+ psycopg -- PostgreSQL database adapter for Python -- C optimization package
3
+ """
4
+
5
+ # Copyright (C) 2020 The Psycopg Team
6
+
7
+ import sys
8
+
9
+ # This package shouldn't be imported before psycopg itself, or weird things
10
+ # will happen
11
+ if "psycopg" not in sys.modules:
12
+ raise ImportError("the psycopg package should be imported before psycopg_binary")
13
+
14
+ from .version import __version__ as __version__ # noqa
@@ -0,0 +1,83 @@
1
+ """
2
+ Stub representation of the public objects exposed by the _psycopg module.
3
+
4
+ TODO: this should be generated by mypy's stubgen but it crashes with no
5
+ information. Will submit a bug.
6
+ """
7
+
8
+ # Copyright (C) 2020 The Psycopg Team
9
+
10
+ from __future__ import annotations
11
+
12
+ from typing import Any, Sequence
13
+
14
+ from psycopg import BaseConnection, abc, pq
15
+ from psycopg.rows import Row, RowMaker
16
+ from psycopg.adapt import AdaptersMap, PyFormat
17
+ from psycopg.pq.abc import PGcancelConn, PGconn, PGresult
18
+ from psycopg._compat import Deque
19
+
20
+ class Transformer(abc.AdaptContext):
21
+ types: tuple[int, ...] | None
22
+ formats: list[pq.Format] | None
23
+ def __init__(self, context: abc.AdaptContext | None = None): ...
24
+ @classmethod
25
+ def from_context(cls, context: abc.AdaptContext | None) -> "Transformer": ...
26
+ @property
27
+ def connection(self) -> BaseConnection[Any] | None: ...
28
+ @property
29
+ def encoding(self) -> str: ...
30
+ @property
31
+ def adapters(self) -> AdaptersMap: ...
32
+ @property
33
+ def pgresult(self) -> PGresult | None: ...
34
+ def set_pgresult(
35
+ self,
36
+ result: "PGresult" | None,
37
+ *,
38
+ set_loaders: bool = True,
39
+ format: pq.Format | None = None,
40
+ ) -> None: ...
41
+ def set_dumper_types(self, types: Sequence[int], format: pq.Format) -> None: ...
42
+ def set_loader_types(self, types: Sequence[int], format: pq.Format) -> None: ...
43
+ def dump_sequence(
44
+ self, params: Sequence[Any], formats: Sequence[PyFormat]
45
+ ) -> Sequence[abc.Buffer | None]: ...
46
+ def as_literal(self, obj: Any) -> bytes: ...
47
+ def get_dumper(self, obj: Any, format: PyFormat) -> abc.Dumper: ...
48
+ def load_rows(self, row0: int, row1: int, make_row: RowMaker[Row]) -> list[Row]: ...
49
+ def load_row(self, row: int, make_row: RowMaker[Row]) -> Row: ...
50
+ def load_sequence(self, record: Sequence[abc.Buffer | None]) -> tuple[Any, ...]: ...
51
+ def get_loader(self, oid: int, format: pq.Format) -> abc.Loader: ...
52
+
53
+ # Generators
54
+ def connect(conninfo: str, *, timeout: float = 0.0) -> abc.PQGenConn[PGconn]: ...
55
+ def cancel(
56
+ cancel_conn: PGcancelConn, *, timeout: float = 0.0
57
+ ) -> abc.PQGenConn[None]: ...
58
+ def execute(pgconn: PGconn) -> abc.PQGen[list[PGresult]]: ...
59
+ def send(pgconn: PGconn) -> abc.PQGen[None]: ...
60
+ def fetch_many(pgconn: PGconn) -> abc.PQGen[list[PGresult]]: ...
61
+ def fetch(pgconn: PGconn) -> abc.PQGen[PGresult | None]: ...
62
+ def pipeline_communicate(
63
+ pgconn: PGconn, commands: Deque[abc.PipelineCommand]
64
+ ) -> abc.PQGen[list[list[PGresult]]]: ...
65
+ def wait_c(
66
+ gen: abc.PQGen[abc.RV], fileno: int, interval: float | None = None
67
+ ) -> abc.RV: ...
68
+
69
+ # Copy support
70
+ def format_row_text(
71
+ row: Sequence[Any], tx: abc.Transformer, out: bytearray | None = None
72
+ ) -> bytearray: ...
73
+ def format_row_binary(
74
+ row: Sequence[Any], tx: abc.Transformer, out: bytearray | None = None
75
+ ) -> bytearray: ...
76
+ def parse_row_text(data: abc.Buffer, tx: abc.Transformer) -> tuple[Any, ...]: ...
77
+ def parse_row_binary(data: abc.Buffer, tx: abc.Transformer) -> tuple[Any, ...]: ...
78
+
79
+ # Arrays optimization
80
+ def array_load_text(
81
+ data: abc.Buffer, loader: abc.Loader, delimiter: bytes = b","
82
+ ) -> list[Any]: ...
83
+ def array_load_binary(data: abc.Buffer, tx: abc.Transformer) -> list[Any]: ...
@@ -0,0 +1,28 @@
1
+ """
2
+ Internal objects to support the UUID adapters.
3
+ """
4
+
5
+ # Copyright (C) 2025 The Psycopg Team
6
+
7
+ import uuid
8
+
9
+ # Re-exports
10
+ UUID = uuid.UUID
11
+ SafeUUID_unknown = uuid.SafeUUID.unknown
12
+
13
+
14
+ class _WritableUUID(UUID):
15
+ """Temporary class, with the same memory layout of UUID, but writable.
16
+
17
+ This class must have the same memory layout of the UUID class, so we can
18
+ create one, setting the `int` attribute, and changing the `__class__`,
19
+ which should be faster than calling the complex UUID.__init__ machinery.
20
+
21
+ u = _WritableUUID()
22
+ u.is_safe = ...
23
+ u.int = ...
24
+ u.__class__ = UUID
25
+ """
26
+
27
+ __slots__ = () # Give the class the same memory layout of the base clasee
28
+ __setattr__ = object.__setattr__ # make the class writable
File without changes
@@ -0,0 +1,12 @@
1
+ """
2
+ psycopg-binary distribution version file.
3
+ """
4
+
5
+ # Copyright (C) 2020 The Psycopg Team
6
+
7
+ from importlib import metadata
8
+
9
+ try:
10
+ __version__ = metadata.version("psycopg-binary")
11
+ except metadata.PackageNotFoundError:
12
+ __version__ = "0.0.0.0"
@@ -0,0 +1,73 @@
1
+ Metadata-Version: 2.4
2
+ Name: psycopg-binary
3
+ Version: 3.2.10
4
+ Summary: PostgreSQL database adapter for Python -- C optimisation distribution
5
+ Home-page: https://psycopg.org/psycopg3/
6
+ Author: Daniele Varrazzo
7
+ Author-email: daniele.varrazzo@gmail.com
8
+ License: GNU Lesser General Public License v3 (LGPLv3)
9
+ Project-URL: Homepage, https://psycopg.org/
10
+ Project-URL: Documentation, https://psycopg.org/psycopg3/docs/
11
+ Project-URL: Changes, https://psycopg.org/psycopg3/docs/news.html
12
+ Project-URL: Code, https://github.com/psycopg/psycopg
13
+ Project-URL: Issue Tracker, https://github.com/psycopg/psycopg/issues
14
+ Project-URL: Download, https://pypi.org/project/psycopg-binary/
15
+ Project-URL: Funding, https://github.com/sponsors/dvarrazzo
16
+ Classifier: Development Status :: 5 - Production/Stable
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
19
+ Classifier: Operating System :: MacOS :: MacOS X
20
+ Classifier: Operating System :: Microsoft :: Windows
21
+ Classifier: Operating System :: POSIX
22
+ Classifier: Programming Language :: Cython
23
+ Classifier: Programming Language :: Python :: 3
24
+ Classifier: Programming Language :: Python :: 3.8
25
+ Classifier: Programming Language :: Python :: 3.9
26
+ Classifier: Programming Language :: Python :: 3.10
27
+ Classifier: Programming Language :: Python :: 3.11
28
+ Classifier: Programming Language :: Python :: 3.12
29
+ Classifier: Programming Language :: Python :: 3.13
30
+ Classifier: Programming Language :: Python :: 3.14
31
+ Classifier: Programming Language :: Python :: Implementation :: CPython
32
+ Classifier: Topic :: Database
33
+ Classifier: Topic :: Database :: Front-Ends
34
+ Classifier: Topic :: Software Development
35
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
36
+ Requires-Python: >=3.8
37
+ Description-Content-Type: text/x-rst
38
+ License-File: LICENSE.txt
39
+ Dynamic: license-file
40
+
41
+ Psycopg 3: PostgreSQL database adapter for Python - binary package
42
+ ==================================================================
43
+
44
+ This distribution package is an optional component of `Psycopg 3`__: it
45
+ contains the optional optimization package `psycopg_binary`__.
46
+
47
+ .. __: https://pypi.org/project/psycopg/
48
+ .. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
49
+ #binary-installation
50
+
51
+ You shouldn't install this package directly: use instead ::
52
+
53
+ pip install "psycopg[binary]"
54
+
55
+ to install a version of the optimization package matching the ``psycopg``
56
+ version installed.
57
+
58
+ Installing this package requires pip >= 20.3 or newer installed.
59
+
60
+ This package is not available for every platform: check out `Binary
61
+ installation`__ in the documentation.
62
+
63
+ .. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
64
+ #binary-installation
65
+
66
+ Please read `the project readme`__ and `the installation documentation`__ for
67
+ more details.
68
+
69
+ .. __: https://github.com/psycopg/psycopg#readme
70
+ .. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
71
+
72
+
73
+ Copyright (C) 2020 The Psycopg Team
@@ -0,0 +1,26 @@
1
+ psycopg_binary/__init__.py,sha256=5kxw9Qdn8ubIi4ik92mxZOsjr5UO0vwq5T5S0BhCWGg,402
2
+ psycopg_binary/_psycopg.cpython-314-aarch64-linux-gnu.so,sha256=_rEDDjmoz_bU6Seajzy-6Li_6Oel6boLHogPewnZbpM,922833
3
+ psycopg_binary/_psycopg.pyi,sha256=3Ed9ZMY4nU-q_mswzXBJeAdGclyxjeuJEns-VhAMEp4,3233
4
+ psycopg_binary/_uuid.py,sha256=2qmCSE61jkn5o6HFqiS6o7a_YtQj19ZeogUO-4YVuG0,765
5
+ psycopg_binary/pq.cpython-314-aarch64-linux-gnu.so,sha256=nMf4BILPqvrV06xZ3AWH75rPkukWq3WYvOTO55bdKtU,464225
6
+ psycopg_binary/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ psycopg_binary/version.py,sha256=AchcLWfoay902mrP3j1Qy3nQ2F5QOzNIv8Yy0NdwFrc,246
8
+ psycopg_binary.libs/libcom_err-057ba42b.so.2.1,sha256=15-Bhc613ZZUHLCRqpvlF51C-QXF9dxkh-uJPjvJHgA,132193
9
+ psycopg_binary.libs/libcrypto-7ef32fd2.so.3,sha256=0XbgGHqzFQOCNIiirGBHNih__JAHUEpWkX3peI3kooY,6067897
10
+ psycopg_binary.libs/libgssapi_krb5-fec99a71.so.2.2,sha256=l0t71wix-wkzwb4TuSovUXvNXBrf1p4rzVah9291a3c,468081
11
+ psycopg_binary.libs/libk5crypto-47ac5e52.so.3.1,sha256=d_YCs-ZwJPlIVzcZOgqiKOihchipX6aJLZrMC23htEo,396073
12
+ psycopg_binary.libs/libkeyutils-19c64d08.so.1.5,sha256=0ZzgZJC5eYazXgrrT4itG2okv_6pcKp_rSDAAyOrkio,67145
13
+ psycopg_binary.libs/libkrb5-90a0ef7c.so.3.3,sha256=86ia-pudkTtsbNuR64ZnM3BcqY2n4RduliYvn0M84nc,1133617
14
+ psycopg_binary.libs/libkrb5support-73f3f43d.so.0.1,sha256=iofW8AZCnzXw-iFTTo_m8KMEYGX-y0g44Qu0-KsIk-A,199737
15
+ psycopg_binary.libs/liblber-f7e377dc.so.2.0.200,sha256=pF5hQF5N4b1GEb9eS51CDy5FYXGSMB32hD97Nixgllo,134681
16
+ psycopg_binary.libs/libldap-4f8549cd.so.2.0.200,sha256=f6mZ89sGydTt7U8bqUGTFS9zj1m1ek83p5lugtwgtWw,607017
17
+ psycopg_binary.libs/libpcre-6b975b27.so.1.2.0,sha256=kTyjARTPlsIv7YDGMjmcj28wg6s7YN_tiyV5a_kr348,329017
18
+ psycopg_binary.libs/libpq-5cd0b3cc.so.5.17,sha256=GG6yLcvW0hVFNJ1Oyat6AOOtSvAzfYyC4VQpgqaShcI,596369
19
+ psycopg_binary.libs/libsasl2-68c9cb0a.so.3.0.0,sha256=n1Kx5RyNvx8w9ZMJiNjAcd__jzT3aSWjHcWAyHlZ4hE,201129
20
+ psycopg_binary.libs/libselinux-ae24b712.so.1,sha256=1eJaGm35sQckwqW-fQEQwn2OB3pn9PHuzInn3_rS4XQ,333953
21
+ psycopg_binary.libs/libssl-47e19448.so.3,sha256=6BdVbdOMVXsV20-V3oGdMf09a_M2YvT5pWvvWacWAQM,1204529
22
+ psycopg_binary-3.2.10.dist-info/METADATA,sha256=JB8FrMmcQytA1j-fYWBLkqaahX_yv31JUF1CiKSuPlo,2967
23
+ psycopg_binary-3.2.10.dist-info/WHEEL,sha256=XntIVveJQULEAwGrxjRTLkcst-UgqUaXg5hZKbIXKDY,153
24
+ psycopg_binary-3.2.10.dist-info/top_level.txt,sha256=8OM_PsAa5oKkzVvRu8kDESihBQo_LXqwG_nrlecubIk,15
25
+ psycopg_binary-3.2.10.dist-info/RECORD,,
26
+ psycopg_binary-3.2.10.dist-info/licenses/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-manylinux_2_17_aarch64
5
+ Tag: cp314-cp314-manylinux2014_aarch64
6
+
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1 @@
1
+ psycopg_binary
Binary file