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 CHANGED
@@ -14,4 +14,4 @@ def install_cache() -> None: # pragma: no cover
14
14
  httpx.Client = CacheClient # type: ignore
15
15
 
16
16
 
17
- __version__ = "0.0.33"
17
+ __version__ = "0.1.1"
@@ -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
- from typing_extensions import TypeAlias
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
- from typing_extensions import TypeAlias
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.0.33
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.8
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
- <a href=""><img width="350" height="250" src="https://raw.githubusercontent.com/karpetrosyan/hishel/master/.github/logo.jpg" alt='HTTPX'></a>
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=PqLQGkHTPzUnEDcEGVCMakiBjeU7jvbg4Pu4opBqbrs,369
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=lnnFmDnKNDb_-OxlZncOJK5IEbtJeTywpITpYFf6WOk,2736
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=SPWifKGSGAFP2wMFoxZf5weZFbuVgHFciyglY6Hb6fc,28699
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=RYzYXqnv0o2JO3RoEmlEUp0yOg_ungXfz4dLN7UTpIQ,27909
22
+ hishel/_sync/_storages.py,sha256=NhIIAoWdpFECcexz121rfYLFRCk3C1iBazVXwoDVoSU,27954
23
23
  hishel/_sync/_transports.py,sha256=G3_8SdPwlnrHZRvE1gqFLE4oZadVqNgg5mvxghDMih0,10838
24
- hishel-0.0.33.dist-info/METADATA,sha256=fVzp5e0XfMlqDkvEzZFfS3F_QfjrUA9wi-A696LNjkc,11694
25
- hishel-0.0.33.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
26
- hishel-0.0.33.dist-info/licenses/LICENSE,sha256=1qQj7pE0V2O9OIedvyOgLGLvZLaPd3nFEup3IBEOZjQ,1493
27
- hishel-0.0.33.dist-info/RECORD,,
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,,