wherobots-python-dbapi 0.6.0__tar.gz → 0.6.2__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.6.0
3
+ Version: 0.6.2
4
4
  Summary: Python DB-API driver for Wherobots DB
5
5
  License: Apache 2.0
6
6
  Author: Maxime Petazzoni
@@ -21,7 +21,7 @@ Requires-Dist: tenacity (>=8.2.3,<9.0.0)
21
21
  Requires-Dist: websockets (>=12.0,<13.0)
22
22
  Description-Content-Type: text/markdown
23
23
 
24
- # wherobots-python-dbapi-driver
24
+ # wherobots-python-dbapi
25
25
 
26
26
  Python DB-API implementation for Wherobots DB. This package implements a
27
27
  PEP-0249 compatible driver to programmatically connect to a Wherobots DB
@@ -33,13 +33,13 @@ If you use [Poetry](https://python-poetry.org) in your project, add the
33
33
  dependency with `poetry add`:
34
34
 
35
35
  ```
36
- $ poetry add git+https://github.com/wherobots/wherobots-python-dbapi-driver
36
+ $ poetry add wherobots-python-dbapi
37
37
  ```
38
38
 
39
39
  Otherwise, just `pip install` it:
40
40
 
41
41
  ```
42
- $ pip install git+https://github.com/wherobots/wherobots-python-dbapi-driver
42
+ $ pip install wherobots-python-dbapi
43
43
  ```
44
44
 
45
45
  ## Usage
@@ -1,4 +1,4 @@
1
- # wherobots-python-dbapi-driver
1
+ # wherobots-python-dbapi
2
2
 
3
3
  Python DB-API implementation for Wherobots DB. This package implements a
4
4
  PEP-0249 compatible driver to programmatically connect to a Wherobots DB
@@ -10,13 +10,13 @@ If you use [Poetry](https://python-poetry.org) in your project, add the
10
10
  dependency with `poetry add`:
11
11
 
12
12
  ```
13
- $ poetry add git+https://github.com/wherobots/wherobots-python-dbapi-driver
13
+ $ poetry add wherobots-python-dbapi
14
14
  ```
15
15
 
16
16
  Otherwise, just `pip install` it:
17
17
 
18
18
  ```
19
- $ pip install git+https://github.com/wherobots/wherobots-python-dbapi-driver
19
+ $ pip install wherobots-python-dbapi
20
20
  ```
21
21
 
22
22
  ## Usage
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wherobots-python-dbapi"
3
- version = "0.6.0"
3
+ version = "0.6.2"
4
4
  description = "Python DB-API driver for Wherobots DB"
5
5
  authors = ["Maxime Petazzoni <max@wherobots.com>"]
6
6
  license = "Apache 2.0"
@@ -142,11 +142,6 @@ def http_to_ws(uri: str) -> str:
142
142
  return str(urllib.parse.urlunparse(parsed))
143
143
 
144
144
 
145
- def append_protocol(uri: str, protocol: str) -> str:
146
- """Appends the protocol version to the URI."""
147
- return urllib.parse.urljoin(os.path.join(uri, ""), protocol)
148
-
149
-
150
145
  def connect_direct(
151
146
  uri: str,
152
147
  headers: dict[str, str] = None,
@@ -156,7 +151,7 @@ def connect_direct(
156
151
  geometry_representation: Union[GeometryRepresentation, None] = None,
157
152
  ) -> Connection:
158
153
  q = queue.SimpleQueue()
159
- uri_with_protocol = append_protocol(uri, PROTOCOL_VERSION)
154
+ uri_with_protocol = f"{uri}/{PROTOCOL_VERSION}"
160
155
 
161
156
  def create_ws_connection():
162
157
  try: