libentry 1.11.3__py3-none-any.whl → 1.11.4__py3-none-any.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.
- libentry/api.py +3 -3
- {libentry-1.11.3.dist-info → libentry-1.11.4.dist-info}/METADATA +1 -1
- {libentry-1.11.3.dist-info → libentry-1.11.4.dist-info}/RECORD +7 -7
- {libentry-1.11.3.dist-info → libentry-1.11.4.dist-info}/LICENSE +0 -0
- {libentry-1.11.3.dist-info → libentry-1.11.4.dist-info}/WHEEL +0 -0
- {libentry-1.11.3.dist-info → libentry-1.11.4.dist-info}/top_level.txt +0 -0
- {libentry-1.11.3.dist-info → libentry-1.11.4.dist-info}/zip-safe +0 -0
libentry/api.py
CHANGED
@@ -10,9 +10,9 @@ __all__ = [
|
|
10
10
|
"APIClient",
|
11
11
|
]
|
12
12
|
|
13
|
-
import os
|
14
13
|
from dataclasses import dataclass, field
|
15
14
|
from typing import Any, Callable, Iterable, List, Literal, Mapping, Optional, Tuple
|
15
|
+
from urllib.parse import urljoin
|
16
16
|
|
17
17
|
import requests
|
18
18
|
|
@@ -190,7 +190,7 @@ class APIClient:
|
|
190
190
|
self.verify = verify
|
191
191
|
|
192
192
|
def get(self, path: str, timeout=60):
|
193
|
-
api_url =
|
193
|
+
api_url = urljoin(self.base_url, path)
|
194
194
|
response = requests.get(api_url, headers=self.headers, verify=self.verify, timeout=timeout)
|
195
195
|
|
196
196
|
if response.status_code != 200:
|
@@ -213,7 +213,7 @@ class APIClient:
|
|
213
213
|
chunk_prefix: str = None,
|
214
214
|
chunk_suffix: str = None,
|
215
215
|
):
|
216
|
-
full_url =
|
216
|
+
full_url = urljoin(self.base_url, path)
|
217
217
|
|
218
218
|
data = json.dumps(json_data) if json_data is not None else None
|
219
219
|
response = requests.post(
|
@@ -1,5 +1,5 @@
|
|
1
1
|
libentry/__init__.py,sha256=rDBip9M1Xb1N4wMKE1ni_DldrQbkRjp8DxPkTp3K2qo,170
|
2
|
-
libentry/api.py,sha256=
|
2
|
+
libentry/api.py,sha256=2I52bVwJPxr_FTHCn4fCm08lGpNofcp9JGWz8JJJq4A,7934
|
3
3
|
libentry/argparse.py,sha256=Bk11H4WRKxcjMlSd0mjWj1T4NWh0JW5eA7TX3C21IoE,10116
|
4
4
|
libentry/dataclasses.py,sha256=AQV2PuxplJCwGZ5HKX72U-z-POUhTdy3XtpEK9KNIGQ,4541
|
5
5
|
libentry/executor.py,sha256=cTV0WxJi0nU1TP-cOwmeodN8DD6L1691M2HIQsJtGrU,6582
|
@@ -14,9 +14,9 @@ libentry/service/list.py,sha256=ElHWhTgShGOhaxMUEwVbMXos0NQKjHsODboiQ-3AMwE,1397
|
|
14
14
|
libentry/service/running.py,sha256=FrPJoJX6wYxcHIysoatAxhW3LajCCm0Gx6l7__6sULQ,5105
|
15
15
|
libentry/service/start.py,sha256=mZT7b9rVULvzy9GTZwxWnciCHgv9dbGN2JbxM60OMn4,1270
|
16
16
|
libentry/service/stop.py,sha256=wOpwZgrEJ7QirntfvibGq-XsTC6b3ELhzRW2zezh-0s,1187
|
17
|
-
libentry-1.11.
|
18
|
-
libentry-1.11.
|
19
|
-
libentry-1.11.
|
20
|
-
libentry-1.11.
|
21
|
-
libentry-1.11.
|
22
|
-
libentry-1.11.
|
17
|
+
libentry-1.11.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
18
|
+
libentry-1.11.4.dist-info/METADATA,sha256=bWMkqIhQ4ro2pebBCS7tRNdvXEiOwWy7g2mmVSB1098,500
|
19
|
+
libentry-1.11.4.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
20
|
+
libentry-1.11.4.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
|
21
|
+
libentry-1.11.4.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
22
|
+
libentry-1.11.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|