libentry 1.22.1__py3-none-any.whl → 1.22.3__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 +6 -8
- {libentry-1.22.1.dist-info → libentry-1.22.3.dist-info}/METADATA +1 -1
- {libentry-1.22.1.dist-info → libentry-1.22.3.dist-info}/RECORD +8 -8
- {libentry-1.22.1.dist-info → libentry-1.22.3.dist-info}/LICENSE +0 -0
- {libentry-1.22.1.dist-info → libentry-1.22.3.dist-info}/WHEEL +0 -0
- {libentry-1.22.1.dist-info → libentry-1.22.3.dist-info}/entry_points.txt +0 -0
- {libentry-1.22.1.dist-info → libentry-1.22.3.dist-info}/top_level.txt +0 -0
- {libentry-1.22.1.dist-info → libentry-1.22.3.dist-info}/zip-safe +0 -0
libentry/api.py
CHANGED
@@ -427,11 +427,10 @@ class APIClient(BaseClient):
|
|
427
427
|
verify: Optional[bool] = None,
|
428
428
|
):
|
429
429
|
full_url = urljoin(self.base_url, path)
|
430
|
-
if headers
|
431
|
-
|
432
|
-
accept = headers["Accept"] if "Accept" in headers else self.headers["Accept"]
|
430
|
+
headers = {**headers} if headers else {}
|
431
|
+
accept = headers.get("Accept", self.headers.get("Accept"))
|
433
432
|
headers["Accept"] = accept + f"; stream={int(stream)}"
|
434
|
-
content_type = headers.get("Content-Type")
|
433
|
+
content_type = headers.get("Content-Type", self.headers.get("Content-Type"))
|
435
434
|
if content_type is None or content_type == "application/json":
|
436
435
|
body = json.dumps(json_data) if json_data is not None else None
|
437
436
|
elif content_type == "application/x-www-form-urlencoded":
|
@@ -588,11 +587,10 @@ class APIClient(BaseClient):
|
|
588
587
|
verify: Optional[bool] = None,
|
589
588
|
):
|
590
589
|
full_url = urljoin(self.base_url, path)
|
591
|
-
if headers
|
592
|
-
|
593
|
-
accept = headers["Accept"] if "Accept" in headers else self.headers["Accept"]
|
590
|
+
headers = {**headers} if headers else {}
|
591
|
+
accept = headers.get("Accept", self.headers.get("Accept"))
|
594
592
|
headers["Accept"] = accept + f"; stream={int(stream)}"
|
595
|
-
content_type = headers.get("Content-Type")
|
593
|
+
content_type = headers.get("Content-Type", self.headers.get("Content-Type"))
|
596
594
|
if content_type is None or content_type == "application/json":
|
597
595
|
body = json.dumps(json_data) if json_data is not None else None
|
598
596
|
elif content_type == "application/x-www-form-urlencoded":
|
@@ -1,5 +1,5 @@
|
|
1
1
|
libentry/__init__.py,sha256=ko2YBIIx5H3dD0tedBkialzJGEDczFaP_PZmT1cIlak,148
|
2
|
-
libentry/api.py,sha256=
|
2
|
+
libentry/api.py,sha256=UkXdBv9oqQhaSESRReLWEPj8venBUoCBppIg-FAXqKA,24146
|
3
3
|
libentry/argparse.py,sha256=NxzXV-jBN51ReZsNs5aeyOfzwYQ5A5nJ95rWoa-FYCs,10415
|
4
4
|
libentry/dataclasses.py,sha256=AQV2PuxplJCwGZ5HKX72U-z-POUhTdy3XtpEK9KNIGQ,4541
|
5
5
|
libentry/executor.py,sha256=cTV0WxJi0nU1TP-cOwmeodN8DD6L1691M2HIQsJtGrU,6582
|
@@ -16,10 +16,10 @@ libentry/service/list.py,sha256=ElHWhTgShGOhaxMUEwVbMXos0NQKjHsODboiQ-3AMwE,1397
|
|
16
16
|
libentry/service/running.py,sha256=FrPJoJX6wYxcHIysoatAxhW3LajCCm0Gx6l7__6sULQ,5105
|
17
17
|
libentry/service/start.py,sha256=mZT7b9rVULvzy9GTZwxWnciCHgv9dbGN2JbxM60OMn4,1270
|
18
18
|
libentry/service/stop.py,sha256=wOpwZgrEJ7QirntfvibGq-XsTC6b3ELhzRW2zezh-0s,1187
|
19
|
-
libentry-1.22.
|
20
|
-
libentry-1.22.
|
21
|
-
libentry-1.22.
|
22
|
-
libentry-1.22.
|
23
|
-
libentry-1.22.
|
24
|
-
libentry-1.22.
|
25
|
-
libentry-1.22.
|
19
|
+
libentry-1.22.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
20
|
+
libentry-1.22.3.dist-info/METADATA,sha256=xpYfLdij0X7LmPtj1jHxb7RmeL3p2zrYA5fPJiwLnEY,813
|
21
|
+
libentry-1.22.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
22
|
+
libentry-1.22.3.dist-info/entry_points.txt,sha256=vgHmJZhM-kqM7U9S179UwDD3pM232tpzJ5NntncXi_8,62
|
23
|
+
libentry-1.22.3.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
|
24
|
+
libentry-1.22.3.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
25
|
+
libentry-1.22.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|