hishel 0.0.33__py3-none-any.whl → 0.1.1__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.
- hishel/__init__.py +1 -1
- hishel/_async/_storages.py +3 -1
- hishel/_sync/_storages.py +3 -1
- hishel/_utils.py +1 -1
- {hishel-0.0.33.dist-info → hishel-0.1.1.dist-info}/METADATA +21 -6
- {hishel-0.0.33.dist-info → hishel-0.1.1.dist-info}/RECORD +8 -8
- {hishel-0.0.33.dist-info → hishel-0.1.1.dist-info}/WHEEL +0 -0
- {hishel-0.0.33.dist-info → hishel-0.1.1.dist-info}/licenses/LICENSE +0 -0
hishel/__init__.py
CHANGED
hishel/_async/_storages.py
CHANGED
|
@@ -23,7 +23,9 @@ except ImportError: # pragma: no cover
|
|
|
23
23
|
anysqlite = None # type: ignore
|
|
24
24
|
|
|
25
25
|
from httpcore import Request, Response
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
if t.TYPE_CHECKING: # pragma: no cover
|
|
28
|
+
from typing_extensions import TypeAlias
|
|
27
29
|
|
|
28
30
|
from hishel._serializers import BaseSerializer, clone_model
|
|
29
31
|
|
hishel/_sync/_storages.py
CHANGED
|
@@ -23,7 +23,9 @@ except ImportError: # pragma: no cover
|
|
|
23
23
|
sqlite3 = None # type: ignore
|
|
24
24
|
|
|
25
25
|
from httpcore import Request, Response
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
if t.TYPE_CHECKING: # pragma: no cover
|
|
28
|
+
from typing_extensions import TypeAlias
|
|
27
29
|
|
|
28
30
|
from hishel._serializers import BaseSerializer, clone_model
|
|
29
31
|
|
hishel/_utils.py
CHANGED
|
@@ -49,7 +49,7 @@ def generate_key(request: httpcore.Request, body: bytes = b"") -> str:
|
|
|
49
49
|
|
|
50
50
|
key_parts = [request.method, encoded_url, body]
|
|
51
51
|
|
|
52
|
-
key = blake2b(digest_size=16)
|
|
52
|
+
key = blake2b(digest_size=16, usedforsecurity=False)
|
|
53
53
|
for part in key_parts:
|
|
54
54
|
key.update(part)
|
|
55
55
|
return key.hexdigest()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: hishel
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Persistent cache implementation for httpx and httpcore
|
|
5
5
|
Project-URL: Homepage, https://hishel.com
|
|
6
6
|
Project-URL: Source, https://github.com/karpetrosyan/hishel
|
|
@@ -16,15 +16,14 @@ Classifier: License :: OSI Approved :: BSD License
|
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
24
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
25
|
-
Requires-Python: >=3.
|
|
25
|
+
Requires-Python: >=3.9
|
|
26
26
|
Requires-Dist: httpx>=0.22.0
|
|
27
|
-
Requires-Dist: typing-extensions>=4.8.0
|
|
28
27
|
Provides-Extra: redis
|
|
29
28
|
Requires-Dist: redis==5.0.1; extra == 'redis'
|
|
30
29
|
Provides-Extra: s3
|
|
@@ -36,11 +35,18 @@ Provides-Extra: yaml
|
|
|
36
35
|
Requires-Dist: pyyaml==6.0.1; extra == 'yaml'
|
|
37
36
|
Description-Content-Type: text/markdown
|
|
38
37
|
|
|
39
|
-
<p align="center">
|
|
40
|
-
|
|
38
|
+
<p align="center" class="logo">
|
|
39
|
+
<div align="center">
|
|
40
|
+
<picture>
|
|
41
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_yellow.png">
|
|
42
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_black.png">
|
|
43
|
+
<img alt="Logo" src="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_yellow.png">
|
|
44
|
+
</picture>
|
|
45
|
+
</div>
|
|
41
46
|
</p>
|
|
42
47
|
|
|
43
48
|
|
|
49
|
+
|
|
44
50
|
<p align="center"><strong>Hishel</strong> <em>- An elegant HTTP Cache implementation for httpx and httpcore.</em></p>
|
|
45
51
|
|
|
46
52
|
<p align="center">
|
|
@@ -175,6 +181,15 @@ Help us grow and continue developing good software for you ❤️
|
|
|
175
181
|
|
|
176
182
|
# Changelog
|
|
177
183
|
|
|
184
|
+
## 0.1.1 (2nd Nov, 2024)
|
|
185
|
+
|
|
186
|
+
- FIx typig extensions nor found. (#290)
|
|
187
|
+
|
|
188
|
+
## 0.1.0 (2nd Nov, 2024)
|
|
189
|
+
|
|
190
|
+
- Add support for Python 3.12 / drop Python 3.8. (#286)
|
|
191
|
+
- Specify usedforsecurity=False in blake2b. (#285)
|
|
192
|
+
|
|
178
193
|
## 0.0.33 (4th Oct, 2024)
|
|
179
194
|
|
|
180
195
|
- Added a [Logging](https://hishel.com/advanced/logging/) section to the documentation.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
hishel/__init__.py,sha256=
|
|
1
|
+
hishel/__init__.py,sha256=bqqnvxTu_DZSoPHOpGSq-SDpglNiEmhBlWnTch1bjQo,368
|
|
2
2
|
hishel/_controller.py,sha256=F7hj1ePUvau2Wj5r6zzdYr8UXPq4osfmMxkmx_Ig2L8,24390
|
|
3
3
|
hishel/_exceptions.py,sha256=qbg55RNlzwhv5JreWY9Zog_zmmiKdn5degtqJKijuRs,198
|
|
4
4
|
hishel/_files.py,sha256=7J5uX7Nnzd7QQWfYuDGh8v6XGLG3eUDBjoJZ4aTaY1c,2228
|
|
@@ -7,21 +7,21 @@ hishel/_lfu_cache.py,sha256=GBxToQI8u_a9TzYnLlZMLhgZ8Lb83boPHzTvIgqV6pA,2707
|
|
|
7
7
|
hishel/_s3.py,sha256=JqRlygITK5uAryviC15HZKQlKY7etUOPWcazTJeYKBI,3736
|
|
8
8
|
hishel/_serializers.py,sha256=gepVb8JC4aBkGw9kLcbAsyo-1XgK_lzTssLr_8av4SQ,11640
|
|
9
9
|
hishel/_synchronization.py,sha256=xOmU9_8KAWTAv3r8EpqPISrtSF3slyh1J0Sc7ZQO1rg,897
|
|
10
|
-
hishel/_utils.py,sha256=
|
|
10
|
+
hishel/_utils.py,sha256=wANSbtWrxZwi3eEkR03oLXZ4Y2WsOtBf90W4BLB_abM,2759
|
|
11
11
|
hishel/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
hishel/_async/__init__.py,sha256=_oAltH4emAtUF7_9SSxz_KKGYzSXL34o_EGgGvoPG7E,187
|
|
13
13
|
hishel/_async/_client.py,sha256=AkVSSbNTTHmK0gX6PRYVQ-3aDbuCX2Im4VKbLkwLiBU,1101
|
|
14
14
|
hishel/_async/_mock.py,sha256=995v9p5xiw3svGSOJATkLMqwodlhZhcwmGygLHM2VFw,1515
|
|
15
15
|
hishel/_async/_pool.py,sha256=li-921qyGzrV7SVUOUlMI0KE7IRsupSkE5iApzxmgqk,8175
|
|
16
|
-
hishel/_async/_storages.py,sha256=
|
|
16
|
+
hishel/_async/_storages.py,sha256=tJXwov37HOvwYwXyjFtf-uRn7y7wR8RZs49F_Urj570,28744
|
|
17
17
|
hishel/_async/_transports.py,sha256=moeH-eQLJHkMp83NnScgsQTSQntDCR1_4A1ByZ_fXjk,11174
|
|
18
18
|
hishel/_sync/__init__.py,sha256=_oAltH4emAtUF7_9SSxz_KKGYzSXL34o_EGgGvoPG7E,187
|
|
19
19
|
hishel/_sync/_client.py,sha256=O-gwm9DsveKtSFUfqdbBB-3I1FmXr5rE-uQ7X5frwDA,1060
|
|
20
20
|
hishel/_sync/_mock.py,sha256=im88tZr-XhP9BpzvIt3uOjndAlNcJvFP7Puv3H-6lKU,1430
|
|
21
21
|
hishel/_sync/_pool.py,sha256=VcAknzyAL2i4-zcyE2fOTmTjfBZ2wkBVNYTvSw0OjVQ,7940
|
|
22
|
-
hishel/_sync/_storages.py,sha256=
|
|
22
|
+
hishel/_sync/_storages.py,sha256=NhIIAoWdpFECcexz121rfYLFRCk3C1iBazVXwoDVoSU,27954
|
|
23
23
|
hishel/_sync/_transports.py,sha256=G3_8SdPwlnrHZRvE1gqFLE4oZadVqNgg5mvxghDMih0,10838
|
|
24
|
-
hishel-0.
|
|
25
|
-
hishel-0.
|
|
26
|
-
hishel-0.
|
|
27
|
-
hishel-0.
|
|
24
|
+
hishel-0.1.1.dist-info/METADATA,sha256=jbRQ8tX8aIIlZ-wgHaMs3vjykkbL66IH9cVPot_D20I,12280
|
|
25
|
+
hishel-0.1.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
26
|
+
hishel-0.1.1.dist-info/licenses/LICENSE,sha256=1qQj7pE0V2O9OIedvyOgLGLvZLaPd3nFEup3IBEOZjQ,1493
|
|
27
|
+
hishel-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|