wherobots-python-dbapi 0.11.0__tar.gz → 0.11.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wherobots-python-dbapi
3
- Version: 0.11.0
3
+ Version: 0.11.1
4
4
  Summary: Python DB-API driver for Wherobots DB
5
5
  License: Apache 2.0
6
6
  Author: Maxime Petazzoni
@@ -14,14 +14,16 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Provides-Extra: test
17
18
  Requires-Dist: StrEnum (>=0.4.15,<0.5.0)
18
- Requires-Dist: cbor2 (>=5.6.3,<6.0.0)
19
- Requires-Dist: numpy (<2)
20
- Requires-Dist: pandas (>=2.0,<3.0)
21
- Requires-Dist: pyarrow (>=14.0.2,<15.0.0)
22
- Requires-Dist: requests (>=2.31.0,<3.0.0)
23
- Requires-Dist: tenacity (>=8.2.3,<9.0.0)
24
- Requires-Dist: websockets (==13.0)
19
+ Requires-Dist: cbor2 (>=5.6.3)
20
+ Requires-Dist: packaging
21
+ Requires-Dist: pandas
22
+ Requires-Dist: pyarrow (>=14.0.2)
23
+ Requires-Dist: pytest (>=8.0.2) ; extra == "test"
24
+ Requires-Dist: requests (>=2.31.0)
25
+ Requires-Dist: tenacity (>=8.2.3)
26
+ Requires-Dist: websockets (>=13.0)
25
27
  Description-Content-Type: text/markdown
26
28
 
27
29
  # wherobots-python-dbapi
@@ -108,6 +110,6 @@ users may find useful:
108
110
  convenient for human inspection while still being usable by
109
111
  libraries like Shapely.
110
112
  * `reuse_session`: controls whether an existing runtime of the same type
111
- and in the same region that is available should be re-used for this
113
+ and in the same region that is available should be reused for this
112
114
  connection. This is the default behavior.
113
115
 
@@ -82,5 +82,5 @@ users may find useful:
82
82
  convenient for human inspection while still being usable by
83
83
  libraries like Shapely.
84
84
  * `reuse_session`: controls whether an existing runtime of the same type
85
- and in the same region that is available should be re-used for this
85
+ and in the same region that is available should be reused for this
86
86
  connection. This is the default behavior.
@@ -1,6 +1,9 @@
1
+ [project]
2
+ name = "wherobots-python-dbapi"
3
+
1
4
  [tool.poetry]
2
5
  name = "wherobots-python-dbapi"
3
- version = "0.11.0"
6
+ version = "0.11.1"
4
7
  description = "Python DB-API driver for Wherobots DB"
5
8
  authors = ["Maxime Petazzoni <max@wherobots.com>"]
6
9
  license = "Apache 2.0"
@@ -13,27 +16,28 @@ Tracker = "https://github.com/wherobots/wherobots-python-dbapi-driver/issues"
13
16
 
14
17
  [tool.poetry.dependencies]
15
18
  python = "^3.8"
16
- requests = "^2.31.0"
17
- websockets = "13.0"
18
- tenacity = "^8.2.3"
19
- pyarrow = "^14.0.2"
20
- cbor2 = "^5.6.3"
21
- pandas = "^2.0"
19
+ packaging = "*"
20
+ requests = ">=2.31.0"
21
+ websockets = ">=13.0"
22
+ tenacity = ">=8.2.3"
23
+ cbor2 = ">=5.6.3"
22
24
  StrEnum = "^0.4.15"
23
- # pyarrow 14.0.2 doesn't limit numpy < 2, but it should, we do it here
24
- numpy = "<2"
25
+ pyarrow = { version = ">=14.0.2" }
26
+ pandas = { version = "*" }
27
+ pytest = { version = ">=8.0.2", optional = true }
28
+
29
+ [tool.poetry.extras]
30
+ test = [ "pytest" ]
25
31
 
26
32
  [tool.poetry.group.dev.dependencies]
27
- mypy = "^1.8.0"
28
- pytest = "^8.0.2"
29
- black = "^24.2.0"
30
- pre-commit = ">=3.5, <3.8.0"
31
- conventional-pre-commit = "^3.1.0"
32
- types-requests = "^2.32.0.20241016"
33
- rich = "^13.7.1"
33
+ pre-commit = "*"
34
+ pytest = ">=8.0.2"
35
+ pyarrow = ">=14.0.2"
36
+ pandas = "*"
37
+ rich = ">=13.7.1"
34
38
 
35
39
  [build-system]
36
- requires = ["poetry-core"]
40
+ requires = ["poetry-core>=1.9.1"]
37
41
  build-backend = "poetry.core.masonry.api"
38
42
 
39
43
  [tool.pylint.format]
@@ -0,0 +1,30 @@
1
+ from .connection import Connection
2
+ from .cursor import Cursor
3
+ from .driver import connect, connect_direct
4
+ from .errors import (
5
+ Error,
6
+ DatabaseError,
7
+ InternalError,
8
+ InterfaceError,
9
+ OperationalError,
10
+ ProgrammingError,
11
+ NotSupportedError,
12
+ )
13
+ from .region import Region
14
+ from .runtime import Runtime
15
+
16
+ __all__ = [
17
+ "Connection",
18
+ "Cursor",
19
+ "connect",
20
+ "connect_direct",
21
+ "Error",
22
+ "DatabaseError",
23
+ "InternalError",
24
+ "InterfaceError",
25
+ "OperationalError",
26
+ "ProgrammingError",
27
+ "NotSupportedError",
28
+ "Region",
29
+ "Runtime",
30
+ ]
@@ -15,7 +15,6 @@ _TYPE_MAP = {
15
15
 
16
16
 
17
17
  class Cursor:
18
-
19
18
  def __init__(self, exec_fn, cancel_fn) -> None:
20
19
  self.__exec_fn = exec_fn
21
20
  self.__cancel_fn = cancel_fn
@@ -8,7 +8,6 @@ from importlib.metadata import PackageNotFoundError
8
8
  import logging
9
9
  from packaging.version import Version
10
10
  import platform
11
- import queue
12
11
  import requests
13
12
  import tenacity
14
13
  from typing import Union, Dict
@@ -170,7 +169,6 @@ def connect_direct(
170
169
  data_compression: Union[DataCompression, None] = None,
171
170
  geometry_representation: Union[GeometryRepresentation, None] = None,
172
171
  ) -> Connection:
173
- q = queue.SimpleQueue()
174
172
  uri_with_protocol = f"{uri}/{protocol}"
175
173
 
176
174
  try:
File without changes
@@ -1,6 +0,0 @@
1
- from .connection import Connection
2
- from .cursor import Cursor
3
- from .driver import connect, connect_direct
4
- from .errors import *
5
- from .region import Region
6
- from .runtime import Runtime
@@ -6,9 +6,9 @@ import uuid
6
6
  from dataclasses import dataclass
7
7
  from typing import Any, Callable, Union, Dict
8
8
 
9
- import cbor2
10
9
  import pandas
11
10
  import pyarrow
11
+ import cbor2
12
12
  import websockets.exceptions
13
13
  import websockets.protocol
14
14
  import websockets.sync.client