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.
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/PKG-INFO +11 -9
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/README.md +1 -1
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/pyproject.toml +21 -17
- wherobots_python_dbapi-0.11.1/wherobots/db/__init__.py +30 -0
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/wherobots/db/cursor.py +0 -1
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/wherobots/db/driver.py +0 -2
- wherobots_python_dbapi-0.11.0/wherobots/__init__.py +0 -0
- wherobots_python_dbapi-0.11.0/wherobots/db/__init__.py +0 -6
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/LICENSE +0 -0
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/wherobots/db/connection.py +1 -1
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/wherobots/db/constants.py +0 -0
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/wherobots/db/errors.py +0 -0
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/wherobots/db/region.py +0 -0
- {wherobots_python_dbapi-0.11.0 → wherobots_python_dbapi-0.11.1}/wherobots/db/runtime.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wherobots-python-dbapi
|
|
3
|
-
Version: 0.11.
|
|
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
|
|
19
|
-
Requires-Dist:
|
|
20
|
-
Requires-Dist: pandas
|
|
21
|
-
Requires-Dist: pyarrow (>=14.0.2
|
|
22
|
-
Requires-Dist:
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist:
|
|
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
|
|
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
|
|
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.
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
cbor2 = "
|
|
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
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
pytest = "
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+
]
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|