psycopg-binary 3.1.18__cp311-cp311-macosx_11_0_arm64.whl → 3.2.4__cp311-cp311-macosx_11_0_arm64.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
@@ -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 pq, abc, BaseConnection
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]: ...
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.18"
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
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: psycopg-binary
3
- Version: 3.1.18
3
+ Version: 3.2.4
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,22 @@
1
+ psycopg_binary-3.2.4.dist-info/RECORD,,
2
+ psycopg_binary-3.2.4.dist-info/WHEEL,sha256=NW1RskY9zow1Y68W-gXg0oZyBRAugI1JHywIzAIai5o,109
3
+ psycopg_binary-3.2.4.dist-info/top_level.txt,sha256=8OM_PsAa5oKkzVvRu8kDESihBQo_LXqwG_nrlecubIk,15
4
+ psycopg_binary-3.2.4.dist-info/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
5
+ psycopg_binary-3.2.4.dist-info/METADATA,sha256=d-w_lJ_yBSPlftePGqfjOOil7TAvJWL_klYkLzuDw3Q,2833
6
+ psycopg_binary/_psycopg.pyi,sha256=czikCGEKdbZ9RkcWNmPUvI2j7mcOX6jTDLVI-5oHtaM,3239
7
+ psycopg_binary/version.py,sha256=MfZD84KKXi17AqKx1JY_ne89d_c8sERObKoe47f_48o,236
8
+ psycopg_binary/__init__.py,sha256=5kxw9Qdn8ubIi4ik92mxZOsjr5UO0vwq5T5S0BhCWGg,402
9
+ psycopg_binary/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ psycopg_binary/pq.cpython-311-darwin.so,sha256=AmyoRvYDm2jXO_copwwChX7majVCsvxEcwWaDSlpQgI,391424
11
+ psycopg_binary/_psycopg.cpython-311-darwin.so,sha256=eYwTGfuHd8M0-YXNG7IXIJ5XsZD2TwdQYWo--feLl2I,828656
12
+ psycopg_binary/.dylibs/libcom_err.3.0.dylib,sha256=bIVuuLN9YQGpfx--uL6wnIOFYc_jz1YVOeyvNX3VesY,74528
13
+ psycopg_binary/.dylibs/libldap.2.dylib,sha256=voIqpT-P4gbTbm0xf4UXKh80ZrK7soBwdc9G2Aq-HhI,481008
14
+ psycopg_binary/.dylibs/libpq.5.dylib,sha256=5G-AH2J26gjooWFHtLD2asrGJh-AoKLPzJoMp7sc7H8,354384
15
+ psycopg_binary/.dylibs/libsasl2.3.dylib,sha256=FpBiOX8_lMLFaf3JJE5hhkp00yNqAV2Zo1K53PbepnA,164464
16
+ psycopg_binary/.dylibs/libssl.3.dylib,sha256=t2Gc4hzPS68MTngN0MbJj6tQtjU2mBJ4h38Tm1UptHw,969696
17
+ psycopg_binary/.dylibs/libcrypto.3.dylib,sha256=6e5jZ7SYjrc12ZHQ78_06qidNgd81bmRwxubLG3CghQ,4550288
18
+ psycopg_binary/.dylibs/libgssapi_krb5.2.2.dylib,sha256=rz_YvVx39NrDBIA75uGbuh4H0LiMkInCreWmPMDeFiY,404432
19
+ psycopg_binary/.dylibs/liblber.2.dylib,sha256=fZipxdpwH4J8-9X7pKBNOyJVwFBjE9qr6QF6kd-hU7U,139504
20
+ psycopg_binary/.dylibs/libkrb5.3.3.dylib,sha256=GQOMUIgfXKA9pa5svBZkkP26D1c1CWjuZ4cH_bV8Ug8,993584
21
+ psycopg_binary/.dylibs/libkrb5support.1.1.dylib,sha256=M8OJBc3DuuAd7mukZJ-q-565l-Q4-ZHk7-aHJSjaFG4,112432
22
+ psycopg_binary/.dylibs/libk5crypto.3.1.dylib,sha256=LKJ-5sx5XlPnt00V9yNePMN1bl70hHiaZixhzU-zviQ,249056
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-macosx_11_0_arm64
5
5
 
Binary file
@@ -1,20 +0,0 @@
1
- psycopg_binary-3.1.18.dist-info/RECORD,,
2
- psycopg_binary-3.1.18.dist-info/WHEEL,sha256=qZ5gUYMG4t2JcLLcFLlOXld9g3WjqyANneXZkxLH8gU,110
3
- psycopg_binary-3.1.18.dist-info/top_level.txt,sha256=8OM_PsAa5oKkzVvRu8kDESihBQo_LXqwG_nrlecubIk,15
4
- psycopg_binary-3.1.18.dist-info/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
5
- psycopg_binary-3.1.18.dist-info/METADATA,sha256=CVCIclQgJunx37PEhCShBiqYtV4XzJRjuiydH9pclcA,2833
6
- psycopg_binary/_psycopg.pyi,sha256=-JpDHbEo8gLifib_QXgcZUnafX-F6BFGPK_98MbqFG0,3234
7
- psycopg_binary/version.py,sha256=sWD3ZsHAdL7p70O98Mw1EpQjXICe0uU49HTNdN6Yo38,247
8
- psycopg_binary/__init__.py,sha256=5kxw9Qdn8ubIi4ik92mxZOsjr5UO0vwq5T5S0BhCWGg,402
9
- psycopg_binary/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- psycopg_binary/pq.cpython-311-darwin.so,sha256=r4j5Xb2X2WOl8HzC-uiOiFe00_EhianjZLDHgoeG-H4,370160
11
- psycopg_binary/_psycopg.cpython-311-darwin.so,sha256=rZ0W660B9MC5-dZPmBznvfi0sQtsouUpv2JzdOB5Cgo,826656
12
- psycopg_binary/.dylibs/libcom_err.3.0.dylib,sha256=SxE1Vfkhv90ZOgyi-OhFM3Ux_cGZ8AdtIj5M_FwjdAM,71120
13
- psycopg_binary/.dylibs/libpq.5.dylib,sha256=G4JUyIvk0I9SZBOWTLtKG7OaoQ7veo1G1YXjFIWTt50,336720
14
- psycopg_binary/.dylibs/libssl.3.dylib,sha256=xJCgQAndH_iV-NtHjOuIUL4O2LnGreEdwsCq6KKzvPo,793168
15
- psycopg_binary/.dylibs/libcrypto.3.dylib,sha256=iJFrZqAQTP0mISOWIFMi9KPz9VlbEsf7wFjpXHvCiEc,4199888
16
- psycopg_binary/.dylibs/libgssapi_krb5.2.2.dylib,sha256=TVgP5lz35QpJ5Vz5qtPNe5JwfQW31n0zQGo5x9M_rU0,326112
17
- psycopg_binary/.dylibs/libintl.8.dylib,sha256=KPNb806TeTa8Qx1zoQOhMonCue_LG5e4EzKZGuAYd_4,162272
18
- psycopg_binary/.dylibs/libkrb5.3.3.dylib,sha256=tVYSbw49WeKaDN9N3HTaxrqW4RSXDmWX1uV07Ti2xzk,790880
19
- psycopg_binary/.dylibs/libkrb5support.1.1.dylib,sha256=YwpmtbZgtpMulOrL7lXrmgs1EkS5eZZD8h-PEq6QI9s,96064
20
- psycopg_binary/.dylibs/libk5crypto.3.1.dylib,sha256=blD6pJz722nVJS1oWSrB2nk1HIJkUI5UjMpbEK5IkW8,197568