psycopg-binary 3.1.19__cp38-cp38-macosx_10_9_x86_64.whl → 3.2.5__cp38-cp38-macosx_10_9_x86_64.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.

Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  """
2
- Stub representaton of the public objects exposed by the _psycopg module.
2
+ Stub representation of the public objects exposed by the _psycopg module.
3
3
 
4
4
  TODO: this should be generated by mypy's stubgen but it crashes with no
5
5
  information. Will submit a bug.
@@ -7,78 +7,77 @@ information. Will submit a bug.
7
7
 
8
8
  # Copyright (C) 2020 The Psycopg Team
9
9
 
10
- from typing import Any, Iterable, List, Optional, Sequence, Tuple
10
+ from __future__ import annotations
11
11
 
12
- from psycopg import pq
13
- from psycopg import abc
12
+ from typing import Any, Sequence
13
+
14
+ from psycopg import BaseConnection, abc, pq
14
15
  from psycopg.rows import Row, RowMaker
15
16
  from psycopg.adapt import AdaptersMap, PyFormat
16
- from psycopg.pq.abc import PGconn, PGresult
17
- from psycopg.connection import BaseConnection
17
+ from psycopg.pq.abc import PGcancelConn, PGconn, PGresult
18
18
  from psycopg._compat import Deque
19
19
 
20
20
  class Transformer(abc.AdaptContext):
21
- types: Optional[Tuple[int, ...]]
22
- formats: Optional[List[pq.Format]]
23
- def __init__(self, context: Optional[abc.AdaptContext] = None): ...
21
+ types: tuple[int, ...] | None
22
+ formats: list[pq.Format] | None
23
+ def __init__(self, context: abc.AdaptContext | None = None): ...
24
24
  @classmethod
25
- def from_context(cls, context: Optional[abc.AdaptContext]) -> "Transformer": ...
25
+ def from_context(cls, context: abc.AdaptContext | None) -> "Transformer": ...
26
26
  @property
27
- def connection(self) -> Optional[BaseConnection[Any]]: ...
27
+ def connection(self) -> BaseConnection[Any] | None: ...
28
28
  @property
29
29
  def encoding(self) -> str: ...
30
30
  @property
31
31
  def adapters(self) -> AdaptersMap: ...
32
32
  @property
33
- def pgresult(self) -> Optional[PGresult]: ...
33
+ def pgresult(self) -> PGresult | None: ...
34
34
  def set_pgresult(
35
35
  self,
36
- result: Optional["PGresult"],
36
+ result: "PGresult" | None,
37
37
  *,
38
38
  set_loaders: bool = True,
39
- format: Optional[pq.Format] = None,
39
+ format: pq.Format | None = None,
40
40
  ) -> None: ...
41
41
  def set_dumper_types(self, types: Sequence[int], format: pq.Format) -> None: ...
42
42
  def set_loader_types(self, types: Sequence[int], format: pq.Format) -> None: ...
43
43
  def dump_sequence(
44
44
  self, params: Sequence[Any], formats: Sequence[PyFormat]
45
- ) -> Sequence[Optional[abc.Buffer]]: ...
45
+ ) -> Sequence[abc.Buffer | None]: ...
46
46
  def as_literal(self, obj: Any) -> bytes: ...
47
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]) -> Optional[Row]: ...
50
- def load_sequence(
51
- self, record: Sequence[Optional[abc.Buffer]]
52
- ) -> Tuple[Any, ...]: ...
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 | None: ...
50
+ def load_sequence(self, record: Sequence[abc.Buffer | None]) -> tuple[Any, ...]: ...
53
51
  def get_loader(self, oid: int, format: pq.Format) -> abc.Loader: ...
54
52
 
55
53
  # Generators
56
- def connect(conninfo: str) -> abc.PQGenConn[PGconn]: ...
57
- def execute(pgconn: PGconn) -> abc.PQGen[List[PGresult]]: ...
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]]: ...
58
59
  def send(pgconn: PGconn) -> abc.PQGen[None]: ...
59
- def fetch_many(pgconn: PGconn) -> abc.PQGen[List[PGresult]]: ...
60
- def fetch(pgconn: PGconn) -> abc.PQGen[Optional[PGresult]]: ...
60
+ def fetch_many(pgconn: PGconn) -> abc.PQGen[list[PGresult]]: ...
61
+ def fetch(pgconn: PGconn) -> abc.PQGen[PGresult | None]: ...
61
62
  def pipeline_communicate(
62
63
  pgconn: PGconn, commands: Deque[abc.PipelineCommand]
63
- ) -> abc.PQGen[List[List[PGresult]]]: ...
64
+ ) -> abc.PQGen[list[list[PGresult]]]: ...
64
65
  def wait_c(
65
- gen: abc.PQGen[abc.RV], fileno: int, timeout: Optional[float] = None
66
+ gen: abc.PQGen[abc.RV], fileno: int, interval: float | None = None
66
67
  ) -> abc.RV: ...
67
68
 
68
69
  # Copy support
69
70
  def format_row_text(
70
- row: Sequence[Any], tx: abc.Transformer, out: Optional[bytearray] = None
71
+ row: Sequence[Any], tx: abc.Transformer, out: bytearray | None = None
71
72
  ) -> bytearray: ...
72
73
  def format_row_binary(
73
- row: Sequence[Any], tx: abc.Transformer, out: Optional[bytearray] = None
74
+ row: Sequence[Any], tx: abc.Transformer, out: bytearray | None = None
74
75
  ) -> bytearray: ...
75
- def parse_row_text(data: abc.Buffer, tx: abc.Transformer) -> Tuple[Any, ...]: ...
76
- def parse_row_binary(data: abc.Buffer, tx: abc.Transformer) -> Tuple[Any, ...]: ...
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, ...]: ...
77
78
 
78
79
  # Arrays optimization
79
80
  def array_load_text(
80
81
  data: abc.Buffer, loader: abc.Loader, delimiter: bytes = b","
81
- ) -> List[Any]: ...
82
- def array_load_binary(data: abc.Buffer, tx: abc.Transformer) -> List[Any]: ...
83
-
84
- # vim: set syntax=python:
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
Binary file
psycopg_binary/version.py CHANGED
@@ -4,8 +4,9 @@ psycopg-c distribution version file.
4
4
 
5
5
  # Copyright (C) 2020 The Psycopg Team
6
6
 
7
- # Use a versioning scheme as defined in
8
- # https://www.python.org/dev/peps/pep-0440/
9
- __version__ = "3.1.19"
7
+ from importlib import metadata
10
8
 
11
- # also change psycopg/psycopg/version.py accordingly.
9
+ try:
10
+ __version__ = metadata.version("psycopg-c")
11
+ except metadata.PackageNotFoundError:
12
+ __version__ = "0.0.0.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: psycopg-binary
3
- Version: 3.1.19
3
+ Version: 3.2.5
4
4
  Summary: PostgreSQL database adapter for Python -- C optimisation distribution
5
5
  Home-page: https://psycopg.org/psycopg3/
6
6
  Author: Daniele Varrazzo
@@ -20,18 +20,18 @@ Classifier: Operating System :: Microsoft :: Windows
20
20
  Classifier: Operating System :: POSIX
21
21
  Classifier: Programming Language :: Cython
22
22
  Classifier: Programming Language :: Python :: 3
23
- Classifier: Programming Language :: Python :: 3.7
24
23
  Classifier: Programming Language :: Python :: 3.8
25
24
  Classifier: Programming Language :: Python :: 3.9
26
25
  Classifier: Programming Language :: Python :: 3.10
27
26
  Classifier: Programming Language :: Python :: 3.11
28
27
  Classifier: Programming Language :: Python :: 3.12
28
+ Classifier: Programming Language :: Python :: 3.13
29
29
  Classifier: Programming Language :: Python :: Implementation :: CPython
30
30
  Classifier: Topic :: Database
31
31
  Classifier: Topic :: Database :: Front-Ends
32
32
  Classifier: Topic :: Software Development
33
33
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
34
- Requires-Python: >=3.7
34
+ Requires-Python: >=3.8
35
35
  Description-Content-Type: text/x-rst
36
36
  License-File: LICENSE.txt
37
37
 
@@ -0,0 +1,23 @@
1
+ psycopg_binary-3.2.5.dist-info/RECORD,,
2
+ psycopg_binary-3.2.5.dist-info/WHEEL,sha256=w6_R5zToL4dhiDH-J5jk0JB_efQ_6KdbwveuTVp2z9A,108
3
+ psycopg_binary-3.2.5.dist-info/top_level.txt,sha256=8OM_PsAa5oKkzVvRu8kDESihBQo_LXqwG_nrlecubIk,15
4
+ psycopg_binary-3.2.5.dist-info/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
5
+ psycopg_binary-3.2.5.dist-info/METADATA,sha256=Z4rROzMiV5QMPTXs-nhOJcIT_35-2MPk-PnLONEwhMg,2833
6
+ psycopg_binary/_uuid.py,sha256=2qmCSE61jkn5o6HFqiS6o7a_YtQj19ZeogUO-4YVuG0,765
7
+ psycopg_binary/_psycopg.pyi,sha256=uCDlLoK7ipWj-XdkRpR5d1ZwQBr6kn4QKywzbuphA2Q,3240
8
+ psycopg_binary/version.py,sha256=MfZD84KKXi17AqKx1JY_ne89d_c8sERObKoe47f_48o,236
9
+ psycopg_binary/__init__.py,sha256=5kxw9Qdn8ubIi4ik92mxZOsjr5UO0vwq5T5S0BhCWGg,402
10
+ psycopg_binary/_psycopg.cpython-38-darwin.so,sha256=CdByOMdMUNij-bGNcalPFq3Ncgv9CsxEwC8CD5GADUk,931712
11
+ psycopg_binary/pq.cpython-38-darwin.so,sha256=K2-yrUelX_JG4_laGdf10AgEVPSr-Ck2k4j4RC5a1Y8,406592
12
+ psycopg_binary/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ psycopg_binary/.dylibs/libcom_err.3.0.dylib,sha256=4ohKKNJysqvL94L3I6guOqcgPCONkwAXzoehnV0c_fQ,37152
14
+ psycopg_binary/.dylibs/libldap.2.dylib,sha256=dMAdIBrI7kTlkltFNI0ENqk-MfG7846EMd05aRs1oaU,470320
15
+ psycopg_binary/.dylibs/libpq.5.dylib,sha256=pK0rX8yxuLMmf1YUauYmzUubsE8PjKxADnuLwxtWw7k,339552
16
+ psycopg_binary/.dylibs/libsasl2.3.dylib,sha256=UbkzPVDqpDJMHtccMuTu0VM5nt05Z9jTYY_fLdujmPg,140496
17
+ psycopg_binary/.dylibs/libssl.3.dylib,sha256=MPMv1yy3jzuKfz7vzme_ehAHAMKR0a_K1KzUVGiVn8E,991200
18
+ psycopg_binary/.dylibs/libcrypto.3.dylib,sha256=6sV9DAzXomQt2H0fH76Wwt2qbv5aiWF99tn43MJLY1w,5013216
19
+ psycopg_binary/.dylibs/libgssapi_krb5.2.2.dylib,sha256=RNIJSvDPrRLPd-2gzaG7h8TMJp9KaoTLvIQSz-LA6T4,392560
20
+ psycopg_binary/.dylibs/liblber.2.dylib,sha256=JaaCSZLDdzzIjdml9_YgM5yF89Aq3Nhg3QX1mCnhybY,106688
21
+ psycopg_binary/.dylibs/libkrb5.3.3.dylib,sha256=BDSW4gjjWiJ0RA6SEa55Y2PRTQMlnB7qbPl4ovi-0hQ,1004064
22
+ psycopg_binary/.dylibs/libkrb5support.1.1.dylib,sha256=yyzozpyBi8nH_i1XZw-gLAYc-u47X5CxgnMttt_6-z4,79040
23
+ psycopg_binary/.dylibs/libk5crypto.3.1.dylib,sha256=TtRrs6ufVw_nGeG6b-eILzq_o21myCJQxq43Lp-3RRQ,208832
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp38-cp38-macosx_10_9_x86_64
5
5
 
Binary file
@@ -1,20 +0,0 @@
1
- psycopg_binary-3.1.19.dist-info/RECORD,,
2
- psycopg_binary-3.1.19.dist-info/WHEEL,sha256=WRwPRH7mjFT-dTZ5lq85StrNRg9EtOV3GBZVL26Gb_o,109
3
- psycopg_binary-3.1.19.dist-info/top_level.txt,sha256=8OM_PsAa5oKkzVvRu8kDESihBQo_LXqwG_nrlecubIk,15
4
- psycopg_binary-3.1.19.dist-info/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
5
- psycopg_binary-3.1.19.dist-info/METADATA,sha256=P536o2-aWL9bfgT31QSCXQUW6XzXkvRVGT2aKrWYjB0,2833
6
- psycopg_binary/_psycopg.pyi,sha256=-JpDHbEo8gLifib_QXgcZUnafX-F6BFGPK_98MbqFG0,3234
7
- psycopg_binary/version.py,sha256=3UTn4HJ7PtaOfLvTGSXd3hgqX8NVFPqNE6tOhXMq4_8,247
8
- psycopg_binary/__init__.py,sha256=5kxw9Qdn8ubIi4ik92mxZOsjr5UO0vwq5T5S0BhCWGg,402
9
- psycopg_binary/_psycopg.cpython-38-darwin.so,sha256=pQ-omYvnBIJFtH1HJsTUwgSCz1wuxiSN7lp78nKVYtY,1034000
10
- psycopg_binary/pq.cpython-38-darwin.so,sha256=oIsKuSjz_AlJH7565_QkgKEDw-5H9JMVfUKVaWUzkkw,418320
11
- psycopg_binary/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- psycopg_binary/.dylibs/libcom_err.3.0.dylib,sha256=-Gqx_OwrFYBnBcwndzIk5Z8QlaE0Mhn-IJ26OBL7vR4,71088
13
- psycopg_binary/.dylibs/libpq.5.dylib,sha256=bLg6pFKK0TJbXo4yPumOHpMaY4Pay0WumPSzaAtaKEM,336496
14
- psycopg_binary/.dylibs/libssl.3.dylib,sha256=p3IGXZ6EPPPcYYE6n0sGKWf7NEJlxTzW99ESPUDS0M8,825616
15
- psycopg_binary/.dylibs/libcrypto.3.dylib,sha256=dVuNRnr2TguCZZq86J3wwwvgZCMS4ttmQ4AwgQpyIGY,4569040
16
- psycopg_binary/.dylibs/libgssapi_krb5.2.2.dylib,sha256=UoSxg2mNg5_fGRi6v0L8__ap4l6PfLICdLFCieJUI1M,324784
17
- psycopg_binary/.dylibs/libintl.8.dylib,sha256=92GX-iVh2ZSo8zDa1gULk6_EQV-CaRr8kST_30G00LM,162496
18
- psycopg_binary/.dylibs/libkrb5.3.3.dylib,sha256=W042gvgMrW8tWunMGG5XKa2a9HWCRBKveZs3dNJzqi4,790000
19
- psycopg_binary/.dylibs/libkrb5support.1.1.dylib,sha256=LV3r_svJkNSq4SYNNUFVbP4CDRfrXj8zWJ8EIQX01HA,95952
20
- psycopg_binary/.dylibs/libk5crypto.3.1.dylib,sha256=zVwWeKMhdviYNW-dQlYfA4TVuAgTc2EVJrA1B_0Pt1Y,197552