hishel 0.1.4__py3-none-any.whl → 1.0.0b1__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 +59 -52
- hishel/_async_cache.py +213 -0
- hishel/_async_httpx.py +236 -0
- hishel/_core/_headers.py +646 -0
- hishel/{beta/_core → _core}/_spec.py +270 -136
- hishel/_core/_storages/_async_base.py +71 -0
- hishel/_core/_storages/_async_sqlite.py +420 -0
- hishel/_core/_storages/_packing.py +144 -0
- hishel/_core/_storages/_sync_base.py +71 -0
- hishel/_core/_storages/_sync_sqlite.py +420 -0
- hishel/{beta/_core → _core}/models.py +100 -37
- hishel/_policies.py +49 -0
- hishel/_sync_cache.py +213 -0
- hishel/_sync_httpx.py +236 -0
- hishel/_utils.py +37 -366
- hishel/asgi.py +400 -0
- hishel/fastapi.py +263 -0
- hishel/httpx.py +12 -0
- hishel/{beta/requests.py → requests.py} +41 -30
- hishel-1.0.0b1.dist-info/METADATA +509 -0
- hishel-1.0.0b1.dist-info/RECORD +24 -0
- hishel/_async/__init__.py +0 -5
- hishel/_async/_client.py +0 -30
- hishel/_async/_mock.py +0 -43
- hishel/_async/_pool.py +0 -201
- hishel/_async/_storages.py +0 -768
- hishel/_async/_transports.py +0 -282
- hishel/_controller.py +0 -581
- hishel/_exceptions.py +0 -10
- hishel/_files.py +0 -54
- hishel/_headers.py +0 -215
- hishel/_lfu_cache.py +0 -71
- hishel/_lmdb_types_.pyi +0 -53
- hishel/_s3.py +0 -122
- hishel/_serializers.py +0 -329
- hishel/_sync/__init__.py +0 -5
- hishel/_sync/_client.py +0 -30
- hishel/_sync/_mock.py +0 -43
- hishel/_sync/_pool.py +0 -201
- hishel/_sync/_storages.py +0 -768
- hishel/_sync/_transports.py +0 -282
- hishel/_synchronization.py +0 -37
- hishel/beta/__init__.py +0 -59
- hishel/beta/_async_cache.py +0 -167
- hishel/beta/_core/__init__.py +0 -0
- hishel/beta/_core/_async/_storages/_sqlite.py +0 -411
- hishel/beta/_core/_base/_storages/_base.py +0 -260
- hishel/beta/_core/_base/_storages/_packing.py +0 -165
- hishel/beta/_core/_headers.py +0 -301
- hishel/beta/_core/_sync/_storages/_sqlite.py +0 -411
- hishel/beta/_sync_cache.py +0 -167
- hishel/beta/httpx.py +0 -317
- hishel-0.1.4.dist-info/METADATA +0 -404
- hishel-0.1.4.dist-info/RECORD +0 -41
- {hishel-0.1.4.dist-info → hishel-1.0.0b1.dist-info}/WHEEL +0 -0
- {hishel-0.1.4.dist-info → hishel-1.0.0b1.dist-info}/licenses/LICENSE +0 -0
hishel-0.1.4.dist-info/METADATA
DELETED
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: hishel
|
|
3
|
-
Version: 0.1.4
|
|
4
|
-
Summary: Persistent cache implementation for httpx and httpcore
|
|
5
|
-
Project-URL: Homepage, https://hishel.com
|
|
6
|
-
Project-URL: Source, https://github.com/karpetrosyan/hishel
|
|
7
|
-
Author-email: Kar Petrosyan <kar.petrosyanpy@gmail.com>
|
|
8
|
-
License-Expression: BSD-3-Clause
|
|
9
|
-
License-File: LICENSE
|
|
10
|
-
Classifier: Development Status :: 3 - Alpha
|
|
11
|
-
Classifier: Environment :: Web Environment
|
|
12
|
-
Classifier: Framework :: AsyncIO
|
|
13
|
-
Classifier: Framework :: Trio
|
|
14
|
-
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
-
Classifier: Topic :: Internet :: WWW/HTTP
|
|
26
|
-
Requires-Python: >=3.9
|
|
27
|
-
Requires-Dist: anyio>=4.9.0
|
|
28
|
-
Requires-Dist: anysqlite>=0.0.5
|
|
29
|
-
Requires-Dist: httpx>=0.28.0
|
|
30
|
-
Requires-Dist: msgpack>=1.1.2
|
|
31
|
-
Requires-Dist: typing-extensions>=4.14.1
|
|
32
|
-
Provides-Extra: httpx
|
|
33
|
-
Requires-Dist: httpx>=0.28.1; extra == 'httpx'
|
|
34
|
-
Provides-Extra: redis
|
|
35
|
-
Requires-Dist: redis==6.2.0; extra == 'redis'
|
|
36
|
-
Provides-Extra: requests
|
|
37
|
-
Requires-Dist: requests>=2.32.5; extra == 'requests'
|
|
38
|
-
Provides-Extra: s3
|
|
39
|
-
Requires-Dist: boto3<=1.15.3,>=1.15.0; (python_version < '3.12') and extra == 's3'
|
|
40
|
-
Requires-Dist: boto3>=1.15.3; (python_version >= '3.12') and extra == 's3'
|
|
41
|
-
Provides-Extra: sqlite
|
|
42
|
-
Requires-Dist: anysqlite>=0.0.5; extra == 'sqlite'
|
|
43
|
-
Provides-Extra: yaml
|
|
44
|
-
Requires-Dist: pyyaml==6.0.2; extra == 'yaml'
|
|
45
|
-
Description-Content-Type: text/markdown
|
|
46
|
-
|
|
47
|
-
<p align="center" class="logo">
|
|
48
|
-
<div align="center">
|
|
49
|
-
<picture>
|
|
50
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_yellow.png">
|
|
51
|
-
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_black.png">
|
|
52
|
-
<img alt="Logo" src="https://raw.githubusercontent.com/karpetrosyan/hishel/master/docs/static/Shelkopryad_350x250_yellow.png">
|
|
53
|
-
</picture>
|
|
54
|
-
</div>
|
|
55
|
-
</p>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<p align="center"><strong>Hishel</strong> <em>- An elegant HTTP Cache implementation for httpx and httpcore.</em></p>
|
|
60
|
-
|
|
61
|
-
<p align="center">
|
|
62
|
-
|
|
63
|
-
<a href="https://pypi.org/project/hishel">
|
|
64
|
-
<img src="https://img.shields.io/pypi/v/hishel.svg" alt="pypi">
|
|
65
|
-
</a>
|
|
66
|
-
|
|
67
|
-
<a href="https://img.shields.io/pypi/l/hishel">
|
|
68
|
-
<img src="https://img.shields.io/pypi/l/hishel" alt="license">
|
|
69
|
-
</a>
|
|
70
|
-
|
|
71
|
-
<a href="https://coveralls.io/github/karpetrosyan/hishel">
|
|
72
|
-
<img src="https://img.shields.io/coverallsCoverage/github/karpetrosyan/hishel" alt="license">
|
|
73
|
-
</a>
|
|
74
|
-
|
|
75
|
-
<a href="https://github.com/karpetrosyan/hishel">
|
|
76
|
-
<img src="https://img.shields.io/pypi/dm/hishel.svg" alt="Downloads">
|
|
77
|
-
</a>
|
|
78
|
-
</p>
|
|
79
|
-
|
|
80
|
-
<p align="center">
|
|
81
|
-
<a href="https://buymeacoffee.com/karpetrosyan" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
|
|
82
|
-
</p>
|
|
83
|
-
|
|
84
|
-
-----
|
|
85
|
-
|
|
86
|
-
**Hishel (հիշել, remember)** is a library that implements HTTP Caching for [HTTPX](https://github.com/encode/httpx) and [HTTP Core](https://github.com/encode/httpcore) libraries in accordance with [**RFC 9111**](https://www.rfc-editor.org/rfc/rfc9111.html), the most recent caching specification.
|
|
87
|
-
|
|
88
|
-
## Features
|
|
89
|
-
|
|
90
|
-
- 💾 **Persistence**: Responses are cached in the [**persistent memory**](https://en.m.wikipedia.org/wiki/Persistent_memory) for later use.
|
|
91
|
-
- 🤲 **Compatibility**: It is completely compatible with your existing transports or connection pools, *whether they are default, custom, or provided by third-party libraries.*
|
|
92
|
-
- 🤗 **Easy to use**: You continue to use httpx while also enabling [web cache](https://en.wikipedia.org/wiki/Web_cache).
|
|
93
|
-
- 🧠 **Smart**: Attempts to clearly implement RFC 9111, understands `Vary`, `Etag`, `Last-Modified`, `Cache-Control`, and `Expires` headers, and *handles response re-validation automatically*.
|
|
94
|
-
- ⚙️ **Configurable**: You have complete control over how the responses are stored and serialized.
|
|
95
|
-
- 📦 **From the package**:
|
|
96
|
-
- Built-in support for [File system](https://en.wikipedia.org/wiki/File_system), [Redis](https://en.wikipedia.org/wiki/Redis), [SQLite](https://en.wikipedia.org/wiki/SQLite), and [AWS S3](https://aws.amazon.com/s3/) backends.
|
|
97
|
-
- Built-in support for [JSON](https://en.wikipedia.org/wiki/JSON), [YAML](https://en.wikipedia.org/wiki/YAML), and [pickle](https://docs.python.org/3/library/pickle.html) serializers.
|
|
98
|
-
- 🚀 **Very fast**: Your requests will be even faster if there are *no IO operations*.
|
|
99
|
-
|
|
100
|
-
## Documentation
|
|
101
|
-
Go through the [Hishel documentation](https://hishel.com).
|
|
102
|
-
|
|
103
|
-
## QuickStart
|
|
104
|
-
|
|
105
|
-
Install `Hishel` using pip:
|
|
106
|
-
``` shell
|
|
107
|
-
$ pip install hishel
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Let's begin with an example of a httpx client.
|
|
111
|
-
|
|
112
|
-
```python
|
|
113
|
-
import hishel
|
|
114
|
-
|
|
115
|
-
with hishel.CacheClient() as client:
|
|
116
|
-
client.get("https://hishel.com") # 0.4749558370003797s
|
|
117
|
-
client.get("https://hishel.com") # 0.002873589000046195s (~250x faster!)
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
or in asynchronous context
|
|
121
|
-
|
|
122
|
-
```python
|
|
123
|
-
import hishel
|
|
124
|
-
|
|
125
|
-
async with hishel.AsyncCacheClient() as client:
|
|
126
|
-
await client.get("https://hishel.com")
|
|
127
|
-
await client.get("https://hishel.com") # takes from the cache
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## Configurations
|
|
131
|
-
|
|
132
|
-
Configure when and how you want to store your responses.
|
|
133
|
-
|
|
134
|
-
```python
|
|
135
|
-
import hishel
|
|
136
|
-
|
|
137
|
-
# All the specification configs
|
|
138
|
-
controller = hishel.Controller(
|
|
139
|
-
# Cache only GET and POST methods
|
|
140
|
-
cacheable_methods=["GET", "POST"],
|
|
141
|
-
|
|
142
|
-
# Cache only 200 status codes
|
|
143
|
-
cacheable_status_codes=[200],
|
|
144
|
-
|
|
145
|
-
# Use the stale response if there is a connection issue and the new response cannot be obtained.
|
|
146
|
-
allow_stale=True,
|
|
147
|
-
|
|
148
|
-
# First, revalidate the response and then utilize it.
|
|
149
|
-
# If the response has not changed, do not download the
|
|
150
|
-
# entire response data from the server; instead,
|
|
151
|
-
# use the one you have because you know it has not been modified.
|
|
152
|
-
always_revalidate=True,
|
|
153
|
-
)
|
|
154
|
-
|
|
155
|
-
# All the storage configs
|
|
156
|
-
storage = hishel.S3Storage(
|
|
157
|
-
bucket_name="my_bucket_name", # store my cache files in the `my_bucket_name` bucket
|
|
158
|
-
ttl=3600, # delete the response if it is in the cache for more than an hour
|
|
159
|
-
)
|
|
160
|
-
client = hishel.CacheClient(controller=controller, storage=storage)
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
# Ignore the fact that the server does not recommend you cache this request!
|
|
164
|
-
client.post(
|
|
165
|
-
"https://example.com",
|
|
166
|
-
extensions={"force_cache": True}
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
# Return a regular response if it is in the cache; else, return a 504 status code. DO NOT SEND A REQUEST!
|
|
171
|
-
client.post(
|
|
172
|
-
"https://example.com",
|
|
173
|
-
headers=[("Cache-Control", "only-if-cached")]
|
|
174
|
-
)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
# Ignore cached responses and do not store incoming responses!
|
|
178
|
-
response = client.post(
|
|
179
|
-
"https://example.com",
|
|
180
|
-
extensions={"cache_disabled": True}
|
|
181
|
-
)
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
## How and where are the responses saved?
|
|
185
|
-
|
|
186
|
-
The responses are stored by `Hishel` in [storages](https://hishel.com/userguide/#storages).
|
|
187
|
-
You have complete control over them; you can change storage or even write your own if necessary.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
## Support the project
|
|
191
|
-
|
|
192
|
-
You can support the project by simply leaving a GitHub star ⭐ or by [contributing](https://hishel.com/contributing/).
|
|
193
|
-
Help us grow and continue developing good software for you ❤️
|
|
194
|
-
|
|
195
|
-
## [0.1.4] - 2025-10-14
|
|
196
|
-
|
|
197
|
-
### 🚀 Features
|
|
198
|
-
|
|
199
|
-
- Add support for requests library
|
|
200
|
-
- Add support for Python 3.14
|
|
201
|
-
- Add support for a sans-IO API (#366)
|
|
202
|
-
- Allow already consumed streams with `CacheTransport` (#377)
|
|
203
|
-
- Add sqlite storage for beta storages
|
|
204
|
-
- Get rid of some locks from sqlite storage
|
|
205
|
-
- Better async implemetation for sqlite storage
|
|
206
|
-
- Added `Metadata` to public API. (#363)
|
|
207
|
-
- Fix race condition in FileStorage initialization. (#353)
|
|
208
|
-
|
|
209
|
-
### 🐛 Bug Fixes
|
|
210
|
-
|
|
211
|
-
- Create an sqlite file in a cache folder
|
|
212
|
-
- Fix beta imports
|
|
213
|
-
|
|
214
|
-
### ⚙️ Miscellaneous Tasks
|
|
215
|
-
|
|
216
|
-
- Improve CI (#369)
|
|
217
|
-
- *(internal)* Remove src folder (#373)
|
|
218
|
-
- *(internal)* Temporary remove python3.14 from CI
|
|
219
|
-
- *(tests)* Add sqlite tests for new storage
|
|
220
|
-
- *(tests)* Move some tests to beta
|
|
221
|
-
## 0.1.3 (1st July, 2025)
|
|
222
|
-
|
|
223
|
-
- Remove `types-redis` from dev dependencies (#336)
|
|
224
|
-
- Bump redis to 6.0.0 and address async `.close()` deprecation warning (#336)
|
|
225
|
-
- Avoid race condition when unlinking files in `FileStorage`. (#334)
|
|
226
|
-
- Allow prodiving a `path_prefix` in `S3Storage` and `AsyncS3Storage`. (#342)
|
|
227
|
-
|
|
228
|
-
## 0.1.2 (5th April, 2025)
|
|
229
|
-
|
|
230
|
-
- Add check for fips compliant python. (#325)
|
|
231
|
-
- Fix compatibility with httpx. (#291)
|
|
232
|
-
- Use `SyncByteStream` instead of `ByteStream`. (#298)
|
|
233
|
-
- Don't raise exceptions if date-containing headers are invalid. (#318)
|
|
234
|
-
- Fix for S3 Storage missing metadata in API request. (#320)
|
|
235
|
-
|
|
236
|
-
## 0.1.1 (2nd Nov, 2024)
|
|
237
|
-
|
|
238
|
-
- Fix typing extensions not found. (#290)
|
|
239
|
-
|
|
240
|
-
## 0.1.0 (2nd Nov, 2024)
|
|
241
|
-
|
|
242
|
-
- Add support for Python 3.12 / drop Python 3.8. (#286)
|
|
243
|
-
- Specify usedforsecurity=False in blake2b. (#285)
|
|
244
|
-
|
|
245
|
-
## 0.0.33 (4th Oct, 2024)
|
|
246
|
-
|
|
247
|
-
- Added a [Logging](https://hishel.com/advanced/logging/) section to the documentation.
|
|
248
|
-
|
|
249
|
-
## 0.0.32 (27th Sep, 2024)
|
|
250
|
-
|
|
251
|
-
- Don't raise an exception if the `Date` header is not present. (#273)
|
|
252
|
-
|
|
253
|
-
## 0.0.31 (22nd Sep, 2024)
|
|
254
|
-
|
|
255
|
-
- Ignore file not found error when cleaning up a file storage. (#264)
|
|
256
|
-
- Fix `AssertionError` on `client.close()` when use SQLiteStorage. (#269)
|
|
257
|
-
- Fix ignored flags when use `force_cache`. (#271)
|
|
258
|
-
|
|
259
|
-
## 0.0.30 (12th July, 2024)
|
|
260
|
-
|
|
261
|
-
- Fix cache update on revalidation response with content (rfc9111 section 4.3.3) (#239)
|
|
262
|
-
- Fix request extensions that were not passed into revalidation request for transport-based implementation (but were
|
|
263
|
-
passed for the pool-based impl) (#247).
|
|
264
|
-
- Add `cache_private` property to the controller to support acting as shared cache. (#224)
|
|
265
|
-
- Improve efficiency of scanning cached responses in `FileStorage` by reducing number of syscalls. (#252)
|
|
266
|
-
- Add `remove` support for storages (#241)
|
|
267
|
-
|
|
268
|
-
## 0.0.29 (23th June, 2024)
|
|
269
|
-
|
|
270
|
-
- Documentation hotfix. (#244)
|
|
271
|
-
|
|
272
|
-
## 0.0.28 (23th June, 2024)
|
|
273
|
-
|
|
274
|
-
- Add `revalidated` response extension. (#242)
|
|
275
|
-
|
|
276
|
-
## 0.0.27 (31th May, 2024)
|
|
277
|
-
|
|
278
|
-
- Fix `RedisStorage` when using without ttl. (#231)
|
|
279
|
-
|
|
280
|
-
## 0.0.26 (12th April, 2024)
|
|
281
|
-
|
|
282
|
-
- Expose `AsyncBaseStorage` and `BaseStorage`. (#220)
|
|
283
|
-
- Prevent cache hits from resetting the ttl. (#215)
|
|
284
|
-
|
|
285
|
-
## 0.0.25 (26th March, 2024)
|
|
286
|
-
|
|
287
|
-
- Add `force_cache` property to the controller, allowing RFC9111 rules to be completely disabled. (#204)
|
|
288
|
-
- Add `.gitignore` to cache directory created by `FIleStorage`. (#197)
|
|
289
|
-
- Remove `stale_*` headers from the `CacheControl` class. (#199)
|
|
290
|
-
|
|
291
|
-
## 0.0.24 (14th February, 2024)
|
|
292
|
-
|
|
293
|
-
- Fix `botocore is not installed` exception when using any kind of storage. (#186)
|
|
294
|
-
|
|
295
|
-
## 0.0.23 (14th February, 2024)
|
|
296
|
-
|
|
297
|
-
- Make `S3Storage` to check staleness of all cache files with set interval. (#182)
|
|
298
|
-
- Fix an issue where an empty file in `FileCache` could cause a parsing error. (#181)
|
|
299
|
-
- Support caching for `POST` and other HTTP methods. (#183)
|
|
300
|
-
|
|
301
|
-
## 0.0.22 (31th January, 2024)
|
|
302
|
-
|
|
303
|
-
- Make `FileStorage` to check staleness of all cache files with set interval. (#169)
|
|
304
|
-
- Support AWS S3 storages. (#164)
|
|
305
|
-
- Move `typing_extensions` from requirements.txt to pyproject.toml. (#161)
|
|
306
|
-
|
|
307
|
-
## 0.0.21 (29th December, 2023)
|
|
308
|
-
|
|
309
|
-
- Fix inner transport and connection pool instances closing. (#147)
|
|
310
|
-
- Improved error message when the storage type is incorrect. (#138)
|
|
311
|
-
|
|
312
|
-
## 0.0.20 (12th December, 2023)
|
|
313
|
-
|
|
314
|
-
- Add in-memory storage. (#133)
|
|
315
|
-
- Allow customization of cache key generation. (#130)
|
|
316
|
-
|
|
317
|
-
## 0.0.19 (30th November, 2023)
|
|
318
|
-
|
|
319
|
-
- Add `force_cache` extension to enforce the request to be cached, ignoring the HTTP headers. (#117)
|
|
320
|
-
- Fix issue where sqlite storage cache get deleted immediately. (#119)
|
|
321
|
-
- Support float numbers for storage ttl. (#107)
|
|
322
|
-
|
|
323
|
-
## 0.0.18 (23rd November, 2023)
|
|
324
|
-
|
|
325
|
-
- Fix issue where freshness cannot be calculated to re-send request. (#104)
|
|
326
|
-
- Add `cache_disabled` extension to temporarily disable the cache (#109)
|
|
327
|
-
- Update `datetime.datetime.utcnow()` to `datetime.datetime.now(datetime.timezone.utc)` since `datetime.datetime.utcnow()` has been deprecated. (#111)
|
|
328
|
-
|
|
329
|
-
## 0.0.17 (6th November, 2023)
|
|
330
|
-
|
|
331
|
-
- Fix `Last-Modified` validation.
|
|
332
|
-
|
|
333
|
-
## 0.0.16 (25th October, 2023)
|
|
334
|
-
|
|
335
|
-
- Add `install_cache` function. (#95)
|
|
336
|
-
- Add sqlite support. (#92)
|
|
337
|
-
- Move `ttl` argument to `BaseStorage` class. (#94)
|
|
338
|
-
|
|
339
|
-
## 0.0.14 (23rd October, 2023)
|
|
340
|
-
|
|
341
|
-
- Replace `AsyncResponseStream` with `AsyncCacheStream`. (#86)
|
|
342
|
-
- Add `must-understand` response directive support. (#90)
|
|
343
|
-
|
|
344
|
-
## 0.0.13 (5th October, 2023)
|
|
345
|
-
|
|
346
|
-
- Add support for Python 3.12. (#71)
|
|
347
|
-
- Fix connections releasing from the connection pool. (#83)
|
|
348
|
-
|
|
349
|
-
## 0.0.12 (8th September, 2023)
|
|
350
|
-
|
|
351
|
-
- Add metadata into the response extensions. (#56)
|
|
352
|
-
|
|
353
|
-
## 0.0.11 (15th August, 2023)
|
|
354
|
-
|
|
355
|
-
- Add support for request `cache-control` directives. (#42)
|
|
356
|
-
- Drop httpcore dependency. (#40)
|
|
357
|
-
- Support HTTP methods only if they are defined as cacheable. (#37)
|
|
358
|
-
|
|
359
|
-
## 0.0.10 (7th August, 2023)
|
|
360
|
-
|
|
361
|
-
- Add Response metadata. (#33)
|
|
362
|
-
- Add API Reference documentation. (#30)
|
|
363
|
-
- Use stale responses only if the client is disconnected. (#28)
|
|
364
|
-
|
|
365
|
-
## 0.0.9 (1st August, 2023)
|
|
366
|
-
|
|
367
|
-
- Expose Controller API. (#23)
|
|
368
|
-
|
|
369
|
-
## 0.0.8 (31st July, 2023)
|
|
370
|
-
|
|
371
|
-
- Skip redis tests if the server was not found. (#16)
|
|
372
|
-
- Decrease sleep time for the storage ttl tests. (#18)
|
|
373
|
-
- Fail coverage under 100. (#19)
|
|
374
|
-
|
|
375
|
-
## 0.0.7 (30th July, 2023)
|
|
376
|
-
|
|
377
|
-
- Add support for `Heuristic Freshness`. (#11)
|
|
378
|
-
- Change `Controller.cache_heuristically` to `Controller.allow_heuristics`. (#12)
|
|
379
|
-
- Handle import errors. (#13)
|
|
380
|
-
|
|
381
|
-
## 0.0.6 (29th July, 2023)
|
|
382
|
-
|
|
383
|
-
- Fix `Vary` header validation. (#8)
|
|
384
|
-
- Dump original requests with the responses. (#7)
|
|
385
|
-
|
|
386
|
-
## 0.0.5 (29th July, 2023)
|
|
387
|
-
|
|
388
|
-
- Fix httpx response streaming.
|
|
389
|
-
|
|
390
|
-
## 0.0.4 (29th July, 2023)
|
|
391
|
-
|
|
392
|
-
- Change `YamlSerializer` name to `YAMLSerializer`.
|
|
393
|
-
|
|
394
|
-
## 0.0.3 (28th July, 2023)
|
|
395
|
-
|
|
396
|
-
- Add `from_cache` response extension.
|
|
397
|
-
- Add `typing_extensions` into the requirements.
|
|
398
|
-
|
|
399
|
-
## 0.0.2 (25th July, 2023)
|
|
400
|
-
|
|
401
|
-
- Add [redis](https://redis.io/) support.
|
|
402
|
-
- Make backends thread and task safe.
|
|
403
|
-
- Add black as a new linter.
|
|
404
|
-
- Add an expire time for cached responses.
|
hishel-0.1.4.dist-info/RECORD
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
hishel/__init__.py,sha256=uFPxYPm-vFegjbeEvYmTqIE7ALymqYf837Z1mMZNVdM,1221
|
|
2
|
-
hishel/_controller.py,sha256=nQMEF-upuBf6-r0wyjd2CGYgBhB-JbEw6IgGxtvADJ4,24629
|
|
3
|
-
hishel/_exceptions.py,sha256=qbg55RNlzwhv5JreWY9Zog_zmmiKdn5degtqJKijuRs,198
|
|
4
|
-
hishel/_files.py,sha256=7J5uX7Nnzd7QQWfYuDGh8v6XGLG3eUDBjoJZ4aTaY1c,2228
|
|
5
|
-
hishel/_headers.py,sha256=BPvas0LQgwbz-HZhFykZiHEIeNgnY-E33U__oskYzJw,7323
|
|
6
|
-
hishel/_lfu_cache.py,sha256=GBxToQI8u_a9TzYnLlZMLhgZ8Lb83boPHzTvIgqV6pA,2707
|
|
7
|
-
hishel/_lmdb_types_.pyi,sha256=2qx4-3kZhkKxhkWApZdnoGck3CbPrhUJQIIMLPBT90w,1492
|
|
8
|
-
hishel/_s3.py,sha256=HkmWYjYWAiWgEMp1_Jl79hG5aUpMcD0NDXjj8VHRmQE,4322
|
|
9
|
-
hishel/_serializers.py,sha256=wQ5xqeQPAnzDFxLrjmWUP6f0IC0RihpgpTgy3jljxjE,11646
|
|
10
|
-
hishel/_synchronization.py,sha256=xOmU9_8KAWTAv3r8EpqPISrtSF3slyh1J0Sc7ZQO1rg,897
|
|
11
|
-
hishel/_utils.py,sha256=uO8PcY_E1sHSgBGzZ2GNB4kpKqAlzmnzPCc3s-yDd44,13826
|
|
12
|
-
hishel/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
hishel/_async/__init__.py,sha256=_oAltH4emAtUF7_9SSxz_KKGYzSXL34o_EGgGvoPG7E,187
|
|
14
|
-
hishel/_async/_client.py,sha256=WqYHV8SeAXlK6Q0uQe0ixkC99i64iOwD2EPOYhQcUL8,1088
|
|
15
|
-
hishel/_async/_mock.py,sha256=995v9p5xiw3svGSOJATkLMqwodlhZhcwmGygLHM2VFw,1515
|
|
16
|
-
hishel/_async/_pool.py,sha256=xCcSAl4bHI5eVsZyPap7iHDpxzzgfMqYE_txcjQJ1Hs,8195
|
|
17
|
-
hishel/_async/_storages.py,sha256=zR0kIJSN1WK6P0qWpOTceEYtwWTcfgabf7t3qnGDK3w,28899
|
|
18
|
-
hishel/_async/_transports.py,sha256=YTZecg1A5vnv4GnF9y9n394nzqGBAkr-M4BF2lvci5U,11445
|
|
19
|
-
hishel/_sync/__init__.py,sha256=_oAltH4emAtUF7_9SSxz_KKGYzSXL34o_EGgGvoPG7E,187
|
|
20
|
-
hishel/_sync/_client.py,sha256=hHTuS9wOBZhcNSQmbopSWTtTTGYu-q_0FQOc9g5TuRI,1048
|
|
21
|
-
hishel/_sync/_mock.py,sha256=im88tZr-XhP9BpzvIt3uOjndAlNcJvFP7Puv3H-6lKU,1430
|
|
22
|
-
hishel/_sync/_pool.py,sha256=U2b9ZGYUltwTjI2q2KHZwmj4boIqUExJ_rUKWuLmYSs,7960
|
|
23
|
-
hishel/_sync/_storages.py,sha256=PAt0HdkGE-LNd-UV3EclrahuFFPcatDK4DoYiTXhiBM,28108
|
|
24
|
-
hishel/_sync/_transports.py,sha256=ivPztcm84PxObIXMZ3hLD_o5HMo8XXGhRlSg0Lm_sNo,11117
|
|
25
|
-
hishel/beta/__init__.py,sha256=VzlIfaGQaYfpesqOujNcG0HMCaIF9CzEyhIY04A4c8g,1477
|
|
26
|
-
hishel/beta/_async_cache.py,sha256=vhdTyRIjMpKzc4qKPZGVoFQa9-60aCXLNGltOE1mDg8,6807
|
|
27
|
-
hishel/beta/_sync_cache.py,sha256=a0fcNY5qApPBXQ_kCUBW2Ccwwj0bEkNTVmv-6W3cqPI,6553
|
|
28
|
-
hishel/beta/httpx.py,sha256=KkK3_ZY3FyjWHDJFNLucXoEBph-pMkI2wuHdagXn_lo,10729
|
|
29
|
-
hishel/beta/requests.py,sha256=Q6hPs8ZoFM6802ZCV9_ERG5BVRacMOMwpw5IanmPrYQ,6393
|
|
30
|
-
hishel/beta/_core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
hishel/beta/_core/_headers.py,sha256=vkdHZFFg734TO-kDpAZ271I7dXpwFUtAOuX3vS2LatU,9809
|
|
32
|
-
hishel/beta/_core/_spec.py,sha256=5z5kZ7Q9BO8yZynQIiDiIly77iTMzUljekhmrF1Otyc,99529
|
|
33
|
-
hishel/beta/_core/models.py,sha256=rbU72bCT_lpwASIs5Qzmo3vcjiDm-lu0C99-CgYWl7k,5524
|
|
34
|
-
hishel/beta/_core/_async/_storages/_sqlite.py,sha256=_PZ4t8KXk-YErTCze80Uh8XnG8WZ2323VrRd0NwoKHY,14719
|
|
35
|
-
hishel/beta/_core/_base/_storages/_base.py,sha256=XvhNNQhMNEc2Jt2p0k8SNW5_yLoDfmYMFfPncmKbmX0,8267
|
|
36
|
-
hishel/beta/_core/_base/_storages/_packing.py,sha256=8s0UxYTLdwzs4A_1E896EVj5VPT8Aqv9UabWbeMD8lw,4898
|
|
37
|
-
hishel/beta/_core/_sync/_storages/_sqlite.py,sha256=1sBU_geVbUSC8e46gao5p_k8MogYEWnZodse55FQQ6Q,14153
|
|
38
|
-
hishel-0.1.4.dist-info/METADATA,sha256=GBT-r6kU3dotaAozdL7xlqDQ5jPt1D88kBcXKceGV1U,14344
|
|
39
|
-
hishel-0.1.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
40
|
-
hishel-0.1.4.dist-info/licenses/LICENSE,sha256=1qQj7pE0V2O9OIedvyOgLGLvZLaPd3nFEup3IBEOZjQ,1493
|
|
41
|
-
hishel-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|