hishel 0.0.33__tar.gz → 0.1.0__tar.gz
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-0.0.33 → hishel-0.1.0}/CHANGELOG.md +5 -0
- {hishel-0.0.33 → hishel-0.1.0}/PKG-INFO +17 -6
- {hishel-0.0.33 → hishel-0.1.0}/README.md +9 -2
- {hishel-0.0.33 → hishel-0.1.0}/hishel/__init__.py +1 -1
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_utils.py +1 -1
- {hishel-0.0.33 → hishel-0.1.0}/pyproject.toml +2 -3
- {hishel-0.0.33 → hishel-0.1.0}/.gitignore +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/LICENSE +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_async/__init__.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_async/_client.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_async/_mock.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_async/_pool.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_async/_storages.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_async/_transports.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_controller.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_exceptions.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_files.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_headers.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_lfu_cache.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_s3.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_serializers.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_sync/__init__.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_sync/_client.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_sync/_mock.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_sync/_pool.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_sync/_storages.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_sync/_transports.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/_synchronization.py +0 -0
- {hishel-0.0.33 → hishel-0.1.0}/hishel/py.typed +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0 (2nd Nov, 2024)
|
|
4
|
+
|
|
5
|
+
- Add support for Python 3.12 / drop Python 3.8. (#286)
|
|
6
|
+
- Specify usedforsecurity=False in blake2b. (#285)
|
|
7
|
+
|
|
3
8
|
## 0.0.33 (4th Oct, 2024)
|
|
4
9
|
|
|
5
10
|
- Added a [Logging](https://hishel.com/advanced/logging/) section to the documentation.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: hishel
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.1.0
|
|
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,11 @@ Help us grow and continue developing good software for you ❤️
|
|
|
175
181
|
|
|
176
182
|
# Changelog
|
|
177
183
|
|
|
184
|
+
## 0.1.0 (2nd Nov, 2024)
|
|
185
|
+
|
|
186
|
+
- Add support for Python 3.12 / drop Python 3.8. (#286)
|
|
187
|
+
- Specify usedforsecurity=False in blake2b. (#285)
|
|
188
|
+
|
|
178
189
|
## 0.0.33 (4th Oct, 2024)
|
|
179
190
|
|
|
180
191
|
- Added a [Logging](https://hishel.com/advanced/logging/) section to the documentation.
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
|
|
1
|
+
<p align="center" class="logo">
|
|
2
|
+
<div align="center">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_yellow.png">
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_black.png">
|
|
6
|
+
<img alt="Logo" src="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_yellow.png">
|
|
7
|
+
</picture>
|
|
8
|
+
</div>
|
|
3
9
|
</p>
|
|
4
10
|
|
|
5
11
|
|
|
12
|
+
|
|
6
13
|
<p align="center"><strong>Hishel</strong> <em>- An elegant HTTP Cache implementation for httpx and httpcore.</em></p>
|
|
7
14
|
|
|
8
15
|
<p align="center">
|
|
@@ -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()
|
|
@@ -7,7 +7,7 @@ name = "hishel"
|
|
|
7
7
|
dynamic = ["readme", "version"]
|
|
8
8
|
description = "Persistent cache implementation for httpx and httpcore"
|
|
9
9
|
license = "BSD-3-Clause"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "Kar Petrosyan", email = "kar.petrosyanpy@gmail.com" },
|
|
13
13
|
]
|
|
@@ -21,16 +21,15 @@ classifiers = [
|
|
|
21
21
|
"Operating System :: OS Independent",
|
|
22
22
|
"Programming Language :: Python :: 3",
|
|
23
23
|
"Programming Language :: Python :: 3 :: Only",
|
|
24
|
-
"Programming Language :: Python :: 3.8",
|
|
25
24
|
"Programming Language :: Python :: 3.9",
|
|
26
25
|
"Programming Language :: Python :: 3.10",
|
|
27
26
|
"Programming Language :: Python :: 3.11",
|
|
28
27
|
"Programming Language :: Python :: 3.12",
|
|
28
|
+
"Programming Language :: Python :: 3.13",
|
|
29
29
|
"Topic :: Internet :: WWW/HTTP",
|
|
30
30
|
]
|
|
31
31
|
dependencies = [
|
|
32
32
|
"httpx>=0.22.0",
|
|
33
|
-
"typing_extensions>=4.8.0"
|
|
34
33
|
]
|
|
35
34
|
|
|
36
35
|
[project.optional-dependencies]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|