libentry 1.22__py3-none-any.whl → 1.22.2__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 +9 -4
- {libentry-1.22.dist-info → libentry-1.22.2.dist-info}/METADATA +1 -1
- {libentry-1.22.dist-info → libentry-1.22.2.dist-info}/RECORD +8 -8
- {libentry-1.22.dist-info → libentry-1.22.2.dist-info}/LICENSE +0 -0
- {libentry-1.22.dist-info → libentry-1.22.2.dist-info}/WHEEL +0 -0
- {libentry-1.22.dist-info → libentry-1.22.2.dist-info}/entry_points.txt +0 -0
- {libentry-1.22.dist-info → libentry-1.22.2.dist-info}/top_level.txt +0 -0
- {libentry-1.22.dist-info → libentry-1.22.2.dist-info}/zip-safe +0 -0
libentry/api.py
CHANGED
@@ -207,6 +207,13 @@ class BaseClient:
|
|
207
207
|
PoolManager(DEFAULT_CONN_POOL_SIZE)
|
208
208
|
)
|
209
209
|
|
210
|
+
@classmethod
|
211
|
+
def reset_connection_pool(cls, size: int = 10):
|
212
|
+
cls.URLLIB3_POOL = (
|
213
|
+
PoolManager(size, cert_reqs='CERT_NONE'),
|
214
|
+
PoolManager(size)
|
215
|
+
)
|
216
|
+
|
210
217
|
def _single_request(
|
211
218
|
self,
|
212
219
|
method: str,
|
@@ -420,8 +427,7 @@ class APIClient(BaseClient):
|
|
420
427
|
verify: Optional[bool] = None,
|
421
428
|
):
|
422
429
|
full_url = urljoin(self.base_url, path)
|
423
|
-
if headers
|
424
|
-
headers = {}
|
430
|
+
headers = {**headers} if headers else {}
|
425
431
|
accept = headers["Accept"] if "Accept" in headers else self.headers["Accept"]
|
426
432
|
headers["Accept"] = accept + f"; stream={int(stream)}"
|
427
433
|
content_type = headers.get("Content-Type")
|
@@ -581,8 +587,7 @@ class APIClient(BaseClient):
|
|
581
587
|
verify: Optional[bool] = None,
|
582
588
|
):
|
583
589
|
full_url = urljoin(self.base_url, path)
|
584
|
-
if headers
|
585
|
-
headers = {}
|
590
|
+
headers = {**headers} if headers else {}
|
586
591
|
accept = headers["Accept"] if "Accept" in headers else self.headers["Accept"]
|
587
592
|
headers["Accept"] = accept + f"; stream={int(stream)}"
|
588
593
|
content_type = headers.get("Content-Type")
|
@@ -1,5 +1,5 @@
|
|
1
1
|
libentry/__init__.py,sha256=ko2YBIIx5H3dD0tedBkialzJGEDczFaP_PZmT1cIlak,148
|
2
|
-
libentry/api.py,sha256=
|
2
|
+
libentry/api.py,sha256=GX1eandj45mBiQneFwn8rWtkwti8PHl5XFqyU2thNXg,24116
|
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.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
20
|
-
libentry-1.22.dist-info/METADATA,sha256=
|
21
|
-
libentry-1.22.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
22
|
-
libentry-1.22.dist-info/entry_points.txt,sha256=vgHmJZhM-kqM7U9S179UwDD3pM232tpzJ5NntncXi_8,62
|
23
|
-
libentry-1.22.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
|
24
|
-
libentry-1.22.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
25
|
-
libentry-1.22.dist-info/RECORD,,
|
19
|
+
libentry-1.22.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
20
|
+
libentry-1.22.2.dist-info/METADATA,sha256=w3rW8gMieGJ5OqA-3Lqu8IJ3INeDIy5oCsfMnb4MJAk,813
|
21
|
+
libentry-1.22.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
22
|
+
libentry-1.22.2.dist-info/entry_points.txt,sha256=vgHmJZhM-kqM7U9S179UwDD3pM232tpzJ5NntncXi_8,62
|
23
|
+
libentry-1.22.2.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
|
24
|
+
libentry-1.22.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
25
|
+
libentry-1.22.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|