psycopg-binary 3.1.20__cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 3.2.1__cp312-cp312-manylinux_2_17_aarch64.manylinux2014_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.

@@ -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]: ...
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.20"
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.20
3
+ Version: 3.2.1
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,7 +20,6 @@ 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
@@ -31,7 +30,7 @@ Classifier: Topic :: Database
31
30
  Classifier: Topic :: Database :: Front-Ends
32
31
  Classifier: Topic :: Software Development
33
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
34
- Requires-Python: >=3.7
33
+ Requires-Python: >=3.8
35
34
  Description-Content-Type: text/x-rst
36
35
  License-File: LICENSE.txt
37
36
 
@@ -0,0 +1,25 @@
1
+ psycopg_binary/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ psycopg_binary/pq.cpython-312-aarch64-linux-gnu.so,sha256=w3r49nRNsvfyaSHRXTzHeBLLLTmgLGNGqqcZzZFPpBM,463881
3
+ psycopg_binary/version.py,sha256=MfZD84KKXi17AqKx1JY_ne89d_c8sERObKoe47f_48o,236
4
+ psycopg_binary/_psycopg.pyi,sha256=czikCGEKdbZ9RkcWNmPUvI2j7mcOX6jTDLVI-5oHtaM,3239
5
+ psycopg_binary/_psycopg.cpython-312-aarch64-linux-gnu.so,sha256=08UFxjQq5MqQnZUmvder5TqpEvBwg7IVawzPa2sUx5M,922649
6
+ psycopg_binary/__init__.py,sha256=5kxw9Qdn8ubIi4ik92mxZOsjr5UO0vwq5T5S0BhCWGg,402
7
+ psycopg_binary-3.2.1.dist-info/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
8
+ psycopg_binary-3.2.1.dist-info/WHEEL,sha256=Mg2jxxG2UOyOwUhTWgVoVD0ev1m00iaVV33MTit8pOE,153
9
+ psycopg_binary-3.2.1.dist-info/top_level.txt,sha256=8OM_PsAa5oKkzVvRu8kDESihBQo_LXqwG_nrlecubIk,15
10
+ psycopg_binary-3.2.1.dist-info/RECORD,,
11
+ psycopg_binary-3.2.1.dist-info/METADATA,sha256=JUmOKDucWHPR9jziF_DYZRqfsgVArCC5ngtcD9B-_pg,2782
12
+ psycopg_binary.libs/libpcre-6b975b27.so.1.2.0,sha256=kTyjARTPlsIv7YDGMjmcj28wg6s7YN_tiyV5a_kr348,329017
13
+ psycopg_binary.libs/libpq-2cf9e207.so.5.16,sha256=SEV89wq06EfYTcYKruZw9FJFj0hZyvBC60WwLXnBUzA,596025
14
+ psycopg_binary.libs/libselinux-ae24b712.so.1,sha256=1eJaGm35sQckwqW-fQEQwn2OB3pn9PHuzInn3_rS4XQ,333953
15
+ psycopg_binary.libs/libldap-600a1233.so.2.0.200,sha256=aRY7bZWKSa6WW-IAjFiIE2MP3W00BiSU6ig2A2agRJ8,607017
16
+ psycopg_binary.libs/libcom_err-057ba42b.so.2.1,sha256=15-Bhc613ZZUHLCRqpvlF51C-QXF9dxkh-uJPjvJHgA,132193
17
+ psycopg_binary.libs/libgssapi_krb5-fec99a71.so.2.2,sha256=l0t71wix-wkzwb4TuSovUXvNXBrf1p4rzVah9291a3c,468081
18
+ psycopg_binary.libs/libkrb5-90a0ef7c.so.3.3,sha256=86ia-pudkTtsbNuR64ZnM3BcqY2n4RduliYvn0M84nc,1133617
19
+ psycopg_binary.libs/libcrypto-65ed5216.so.3,sha256=95kP4t0mOdFhWtk5HD7PKlFbDJfm1_oCK5XiwZAFl08,5401361
20
+ psycopg_binary.libs/libsasl2-68c9cb0a.so.3.0.0,sha256=n1Kx5RyNvx8w9ZMJiNjAcd__jzT3aSWjHcWAyHlZ4hE,201129
21
+ psycopg_binary.libs/liblber-f3b5a09f.so.2.0.200,sha256=hVRJtcjx3iO_PV1PFBblD4DXENlMMO_nAytAZDsJvQQ,134681
22
+ psycopg_binary.libs/libk5crypto-47ac5e52.so.3.1,sha256=d_YCs-ZwJPlIVzcZOgqiKOihchipX6aJLZrMC23htEo,396073
23
+ psycopg_binary.libs/libkeyutils-19c64d08.so.1.5,sha256=0ZzgZJC5eYazXgrrT4itG2okv_6pcKp_rSDAAyOrkio,67145
24
+ psycopg_binary.libs/libkrb5support-73f3f43d.so.0.1,sha256=iofW8AZCnzXw-iFTTo_m8KMEYGX-y0g44Qu0-KsIk-A,199737
25
+ psycopg_binary.libs/libssl-3af314b1.so.3,sha256=DY8_p1nmpH5Y00rQ0F2D8yMmAECnA6SGBuUarXpS1Hg,1203745
Binary file
Binary file
@@ -1,25 +0,0 @@
1
- psycopg_binary/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- psycopg_binary/pq.cpython-312-aarch64-linux-gnu.so,sha256=SPKw3MgYcJ_AlfkqAxOWwosThC0pTAAOqcnPJOyoVHA,463881
3
- psycopg_binary/version.py,sha256=qow1xg4aDZIUOp3N8JxMvKjRhapxZWUhoTdjhvBok5A,247
4
- psycopg_binary/_psycopg.pyi,sha256=-JpDHbEo8gLifib_QXgcZUnafX-F6BFGPK_98MbqFG0,3234
5
- psycopg_binary/_psycopg.cpython-312-aarch64-linux-gnu.so,sha256=cmYbqJogVLv9TyVZNw54h6gsC0ud0XLi2u3OWjhxk3w,791553
6
- psycopg_binary/__init__.py,sha256=5kxw9Qdn8ubIi4ik92mxZOsjr5UO0vwq5T5S0BhCWGg,402
7
- psycopg_binary-3.1.20.dist-info/LICENSE.txt,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
8
- psycopg_binary-3.1.20.dist-info/WHEEL,sha256=Mg2jxxG2UOyOwUhTWgVoVD0ev1m00iaVV33MTit8pOE,153
9
- psycopg_binary-3.1.20.dist-info/top_level.txt,sha256=8OM_PsAa5oKkzVvRu8kDESihBQo_LXqwG_nrlecubIk,15
10
- psycopg_binary-3.1.20.dist-info/RECORD,,
11
- psycopg_binary-3.1.20.dist-info/METADATA,sha256=2I3Tx357F_lEqSRU8bLPQVXWUNBX-lIbJBqw50lrOdI,2833
12
- psycopg_binary.libs/libpcre-6b975b27.so.1.2.0,sha256=kTyjARTPlsIv7YDGMjmcj28wg6s7YN_tiyV5a_kr348,329017
13
- psycopg_binary.libs/libpq-2cf9e207.so.5.16,sha256=iUgGzZhgybT8E2IqwrVD-c3yW22veGKfviRwcRyvhaI,596025
14
- psycopg_binary.libs/libselinux-ae24b712.so.1,sha256=1eJaGm35sQckwqW-fQEQwn2OB3pn9PHuzInn3_rS4XQ,333953
15
- psycopg_binary.libs/libcom_err-057ba42b.so.2.1,sha256=15-Bhc613ZZUHLCRqpvlF51C-QXF9dxkh-uJPjvJHgA,132193
16
- psycopg_binary.libs/libcrypto-f452224f.so.3,sha256=3Ixc_h-mYNYRhFK7xzDMiu7jDxtIBC3yfIbvcgBB5yM,5401361
17
- psycopg_binary.libs/liblber-2055e68b.so.2.0.200,sha256=3xROWQEW0FT9p1VKcx7oQNxdtztyxXzuPYUwJUWK-qM,134681
18
- psycopg_binary.libs/libgssapi_krb5-fec99a71.so.2.2,sha256=l0t71wix-wkzwb4TuSovUXvNXBrf1p4rzVah9291a3c,468081
19
- psycopg_binary.libs/libkrb5-90a0ef7c.so.3.3,sha256=86ia-pudkTtsbNuR64ZnM3BcqY2n4RduliYvn0M84nc,1133617
20
- psycopg_binary.libs/libsasl2-68c9cb0a.so.3.0.0,sha256=n1Kx5RyNvx8w9ZMJiNjAcd__jzT3aSWjHcWAyHlZ4hE,201129
21
- psycopg_binary.libs/libldap-f15baf69.so.2.0.200,sha256=uyl0jKeRGLn6Gm_fl1iEYjnNXJUEsyOoU9O6PJrRA6s,607017
22
- psycopg_binary.libs/libk5crypto-47ac5e52.so.3.1,sha256=d_YCs-ZwJPlIVzcZOgqiKOihchipX6aJLZrMC23htEo,396073
23
- psycopg_binary.libs/libkeyutils-19c64d08.so.1.5,sha256=0ZzgZJC5eYazXgrrT4itG2okv_6pcKp_rSDAAyOrkio,67145
24
- psycopg_binary.libs/libkrb5support-73f3f43d.so.0.1,sha256=iofW8AZCnzXw-iFTTo_m8KMEYGX-y0g44Qu0-KsIk-A,199737
25
- psycopg_binary.libs/libssl-3af314b1.so.3,sha256=D6XefAA1LebvT8agQCoKzIVPlxbHBeNVNpNZzoo7g7o,1203745