psycopg-binary 3.1.19__cp311-cp311-macosx_10_9_x86_64.whl → 3.2.4__cp311-cp311-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
@@ -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.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
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: psycopg-binary
3
- Version: 3.1.19
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=rRBe8gNEhotozzxgrO95hZ3LAl74f9an5Xo4YRYFmgA,110
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=8Z7QV-2qjabOUSIb2F0-g7C17J8ey3B8UsqIF0f7Ptk,414304
11
+ psycopg_binary/_psycopg.cpython-311-darwin.so,sha256=zkujBA2npL7Caka21vx-InmF6pVEgcMgSm4pzlZSE8w,933792
12
+ psycopg_binary/.dylibs/libcom_err.3.0.dylib,sha256=dHpWmmV9LcLE0mcV1Dyn1V_Z209jAf5ZO1T5nP_Ke_o,37152
13
+ psycopg_binary/.dylibs/libldap.2.dylib,sha256=84Tt19SbcPoTAtGIbPZTaHlPbuRTX_cmQHjenncOYZE,470320
14
+ psycopg_binary/.dylibs/libpq.5.dylib,sha256=1ugcK9KAdLr87HQEHaj08k4UStUreSI6f44U2KVviS0,339504
15
+ psycopg_binary/.dylibs/libsasl2.3.dylib,sha256=gVjgdYYhl5QIU0IZ_2hbNrEty0uR42ljSxF6XoIPIsU,140496
16
+ psycopg_binary/.dylibs/libssl.3.dylib,sha256=ErKo1UzKPIgiIWm9tqcVMXlfId6qil6kPys3eLtGWG4,991216
17
+ psycopg_binary/.dylibs/libcrypto.3.dylib,sha256=kPFcIUSMK3WUKs4Lh2KDhHt-zJw5duwqZX21omr9grQ,5012992
18
+ psycopg_binary/.dylibs/libgssapi_krb5.2.2.dylib,sha256=PKwIYmeMyPAp2BY0BfdwyC8B3wxHlY5ESPgCDB9B9hE,392560
19
+ psycopg_binary/.dylibs/liblber.2.dylib,sha256=dieUJLfkGO9FmgeT5g8ydo-xJV6MQu5eJ0t5wF8Yp0I,106688
20
+ psycopg_binary/.dylibs/libkrb5.3.3.dylib,sha256=zZD9-dyBMF4BrfsYIjN6w9e3zVFQJtlZwYBxMIjqVEM,1004064
21
+ psycopg_binary/.dylibs/libkrb5support.1.1.dylib,sha256=v8eN0FKaeqONxKi9n838DH2-2k5N-qCIsKXWZLL9t58,79040
22
+ psycopg_binary/.dylibs/libk5crypto.3.1.dylib,sha256=8ZhniEY_U8Eb_iI8AbWsVG4TzYf66jMj-SUNoz26nuw,208832
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp311-cp311-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=3Ij8bI-sb8yCMxXItr4MLlNoRGZb2WoUxQe9xIFR_DQ,111
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/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- psycopg_binary/pq.cpython-311-darwin.so,sha256=i8UmbMMGqoY3UTzTKD2de7XqzaPDFmU9cDwJ3TM2iuA,418128
11
- psycopg_binary/_psycopg.cpython-311-darwin.so,sha256=O3RwJVRYBrLergP7cHxEG0cc8DUpFA_wCqUPKQGNrG8,1050736
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