hishel 1.1.2__tar.gz → 1.1.3__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.
Files changed (27) hide show
  1. hishel-1.1.3/CHANGELOG.md +217 -0
  2. {hishel-1.1.2 → hishel-1.1.3}/PKG-INFO +169 -147
  3. {hishel-1.1.2 → hishel-1.1.3}/hishel/__init__.py +2 -1
  4. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/_spec.py +1 -1
  5. {hishel-1.1.2 → hishel-1.1.3}/pyproject.toml +1 -1
  6. hishel-1.1.2/CHANGELOG.md +0 -195
  7. {hishel-1.1.2 → hishel-1.1.3}/.gitignore +0 -0
  8. {hishel-1.1.2 → hishel-1.1.3}/LICENSE +0 -0
  9. {hishel-1.1.2 → hishel-1.1.3}/README.md +0 -0
  10. {hishel-1.1.2 → hishel-1.1.3}/hishel/_async_cache.py +0 -0
  11. {hishel-1.1.2 → hishel-1.1.3}/hishel/_async_httpx.py +0 -0
  12. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/_headers.py +0 -0
  13. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/_storages/_async_base.py +0 -0
  14. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/_storages/_async_sqlite.py +0 -0
  15. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/_storages/_packing.py +0 -0
  16. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/_storages/_sync_base.py +0 -0
  17. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/_storages/_sync_sqlite.py +0 -0
  18. {hishel-1.1.2 → hishel-1.1.3}/hishel/_core/models.py +0 -0
  19. {hishel-1.1.2 → hishel-1.1.3}/hishel/_policies.py +0 -0
  20. {hishel-1.1.2 → hishel-1.1.3}/hishel/_sync_cache.py +0 -0
  21. {hishel-1.1.2 → hishel-1.1.3}/hishel/_sync_httpx.py +0 -0
  22. {hishel-1.1.2 → hishel-1.1.3}/hishel/_utils.py +0 -0
  23. {hishel-1.1.2 → hishel-1.1.3}/hishel/asgi.py +0 -0
  24. {hishel-1.1.2 → hishel-1.1.3}/hishel/fastapi.py +0 -0
  25. {hishel-1.1.2 → hishel-1.1.3}/hishel/httpx.py +0 -0
  26. {hishel-1.1.2 → hishel-1.1.3}/hishel/py.typed +0 -0
  27. {hishel-1.1.2 → hishel-1.1.3}/hishel/requests.py +0 -0
@@ -0,0 +1,217 @@
1
+ ## What's Changed in 1.1.3
2
+ ### ⚙️ Miscellaneous Tasks
3
+
4
+ * improve git-cliff docs by @karpetrosyan
5
+ ### 🐛 Bug Fixes
6
+
7
+ * fix: add BaseFilter to __all__ exports by @martinblech in [#408](https://github.com/karpetrosyan/hishel/pull/408)
8
+ * fix: set `after_revalidation=True` for `NeedsToBeUpdated` -> `FromCache` transition by @jlopex in [#402](https://github.com/karpetrosyan/hishel/pull/402)
9
+
10
+ ### Contributors
11
+ * @martinblech
12
+ * @jlopex
13
+ * @karpetrosyan
14
+
15
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.2...1.1.3
16
+
17
+ ## What's Changed in 1.1.2
18
+ ### 🐛 Bug Fixes
19
+
20
+ * respect shared option when excluding unstorable headers by @karpetrosyan
21
+ * remove s-maxage consideration for private caches by @karpetrosyan
22
+ * ensure 304 responses don't leak by @karpetrosyan
23
+
24
+ ### Contributors
25
+ * @karpetrosyan
26
+ * @jlopex
27
+
28
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.1...1.1.2
29
+
30
+ ## What's Changed in 1.1.1
31
+ ### ⚙️ Miscellaneous Tasks
32
+
33
+ * chore(deps-dev): bump the python-packages group with 10 updates by @dependabot[bot] in [#396](https://github.com/karpetrosyan/hishel/pull/396)
34
+ ### 📦 Dependencies
35
+
36
+ * chore(deps): bump astral-sh/setup-uv from 5 to 7 by @dependabot[bot] in [#393](https://github.com/karpetrosyan/hishel/pull/393)
37
+ * chore(deps): bump actions/download-artifact from 4 to 6 by @dependabot[bot] in [#394](https://github.com/karpetrosyan/hishel/pull/394)
38
+ * chore(deps): bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in [#395](https://github.com/karpetrosyan/hishel/pull/395)
39
+
40
+ ### Contributors
41
+ * @karpetrosyan
42
+ * @dependabot[bot]
43
+
44
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.0...1.1.1
45
+
46
+ ## What's Changed in 1.1.0
47
+ ### ⚙️ Miscellaneous Tasks
48
+
49
+ * add in memory example by @karpetrosyan
50
+ ### 🐛 Bug Fixes
51
+
52
+ * pass any response with non-expected status code on revalidation to client by @karpetrosyan
53
+ * pass any response with non-expected status code on revalidation to client by @karpetrosyan
54
+ ### 🚀 Features
55
+
56
+ * allow setting storage base with via `database_path` for sqlite storage by @karpetrosyan
57
+
58
+ ### Contributors
59
+ * @karpetrosyan
60
+
61
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0...1.1.0
62
+
63
+ ## What's Changed in 1.0.0
64
+ ### ⚙️ Miscellaneous Tasks
65
+
66
+ * add examples, improve docs by @karpetrosyan
67
+
68
+ ### Contributors
69
+ * @karpetrosyan
70
+
71
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0b1...1.0.0
72
+
73
+ ## What's Changed in 1.0.0b1
74
+ ### ♻️ Refactoring
75
+
76
+ * add policies by @karpetrosyan
77
+ ### ⚙️ Miscellaneous Tasks
78
+
79
+ * add graphql docs by @karpetrosyan
80
+ * improve sans-io diagram colors by @karpetrosyan
81
+ ### 🐛 Bug Fixes
82
+
83
+ * filter out `Transfer-Encoding` header for asgi responses by @karpetrosyan
84
+ * body-sensitive responses caching by @karpetrosyan
85
+ ### 🚀 Features
86
+
87
+ * add global `use_body_key` setting by @karpetrosyan
88
+
89
+ ### Contributors
90
+ * @karpetrosyan
91
+
92
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev3...1.0.0b1
93
+
94
+ ## What's Changed in 1.0.0.dev3
95
+ ### ♻️ Refactoring
96
+
97
+ * automatically generate httpx sync integration from async by @karpetrosyan
98
+ * replace pairs with entries, simplify storage API by @karpetrosyan
99
+ ### ⚙️ Miscellaneous Tasks
100
+
101
+ * more robust compressed response caching by @karpetrosyan
102
+ * add custom integrations docs by @karpetrosyan
103
+ * simplify metadata docs by @karpetrosyan
104
+ ### 🐛 Bug Fixes
105
+
106
+ * add date header for proper age calculation by @karpetrosyan
107
+ * handle httpx iterable usage instead of iterator correctly by @karpetrosyan
108
+ * fix compressed data caching for requests by @karpetrosyan
109
+ * raise on consumed httpx streams, which we can't store as is (it's already decoded) by @karpetrosyan
110
+ * add missing permissions into `publish.yml` by @karpetrosyan
111
+ ### 🚀 Features
112
+
113
+ * add logging for asgi by @karpetrosyan
114
+ * add blacksheep integration examples by @karpetrosyan
115
+ * add integrations with fastapi and asgi by @karpetrosyan
116
+
117
+ ### Contributors
118
+ * @karpetrosyan
119
+
120
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev2...1.0.0.dev3
121
+
122
+ ## What's Changed in 1.0.0.dev2
123
+ ### ⚙️ Miscellaneous Tasks
124
+
125
+ * fix time travel date, explicitly specify the timezone by @karpetrosyan
126
+ * add import without extras check in ci by @karpetrosyan
127
+ * remove redundant utils and tests by @karpetrosyan
128
+ ### 🐛 Bug Fixes
129
+
130
+ * don't raise an error on 3xx during revalidation by @karpetrosyan
131
+ * fix check for storing auth requests by @karpetrosyan
132
+ ### 🚀 Features
133
+
134
+ * add hishel_created_at response metadata by @karpetrosyan
135
+
136
+ ### Contributors
137
+ * @karpetrosyan
138
+
139
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev1...1.0.0.dev2
140
+
141
+ ## What's Changed in 1.0.0.dev1
142
+ ### ⚙️ Miscellaneous Tasks
143
+
144
+ * remove some redundant utils methods by @karpetrosyan
145
+ ### 📦 Dependencies
146
+
147
+ * improve git-cliff by @karpetrosyan
148
+ * install async extra with httpx by @karpetrosyan
149
+ * make `anysqlite` optional dependency by @karpetrosyan
150
+ * make httpx and async libs optional dependencies by @karpetrosyan
151
+
152
+ ### Contributors
153
+ * @karpetrosyan
154
+
155
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev0...1.0.0.dev1
156
+
157
+ ## What's Changed in 1.0.0.dev0
158
+ ### ⚙️ Miscellaneous Tasks
159
+
160
+ * improve docs versioning, deploy dev doc on ci by @karpetrosyan
161
+ * use mike powered versioning by @karpetrosyan
162
+
163
+ ### Contributors
164
+ * @karpetrosyan
165
+
166
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.5...1.0.0.dev0
167
+
168
+ ## What's Changed in 0.1.5
169
+ ### ⚙️ Miscellaneous Tasks
170
+
171
+ * remove some redundant files from repo by @karpetrosyan
172
+ ### 🐛 Bug Fixes
173
+
174
+ * fix some line breaks by @karpetrosyan
175
+ ### 🚀 Features
176
+
177
+ * increase requests buffer size to 128KB, disable charset detection by @karpetrosyan
178
+ * feat: add close method to storages API by @karpetrosyan in [#384](https://github.com/karpetrosyan/hishel/pull/384)
179
+ * better cache-control parsing by @karpetrosyan
180
+ * set chunk size to 128KB for httpx to reduce SQLite read/writes by @karpetrosyan
181
+
182
+ ### Contributors
183
+ * @karpetrosyan
184
+
185
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.4...0.1.5
186
+
187
+ ## What's Changed in 0.1.4
188
+ ### ⚙️ Miscellaneous Tasks
189
+
190
+ * move some tests to beta by @karpetrosyan
191
+ * add sqlite tests for new storage by @karpetrosyan
192
+ * temporary remove python3.14 from CI by @karpetrosyan
193
+ * chore(internal): remove src folder by @karpetrosyan in [#373](https://github.com/karpetrosyan/hishel/pull/373)
194
+ * chore: improve CI by @karpetrosyan in [#369](https://github.com/karpetrosyan/hishel/pull/369)
195
+ ### 🐛 Bug Fixes
196
+
197
+ * fix beta imports by @karpetrosyan
198
+ * create an sqlite file in a cache folder by @karpetrosyan
199
+ ### 🚀 Features
200
+
201
+ * better async implemetation for sqlite storage by @karpetrosyan
202
+ * get rid of some locks from sqlite storage by @karpetrosyan
203
+ * add sqlite storage for beta storages by @karpetrosyan
204
+ * feat: allow already consumed streams with `CacheTransport` by @jamesbraza in [#377](https://github.com/karpetrosyan/hishel/pull/377)
205
+ * feat: add support for a sans-IO API by @karpetrosyan in [#366](https://github.com/karpetrosyan/hishel/pull/366)
206
+
207
+ ### Contributors
208
+ * @karpetrosyan
209
+ * @jamesbraza
210
+ * @GugNersesyan
211
+ * @dependabot[bot]
212
+ * @mmdbalkhi
213
+ * @AstraLuma
214
+ * @deathaxe
215
+
216
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.3...0.1.4
217
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hishel
3
- Version: 1.1.2
3
+ Version: 1.1.3
4
4
  Summary: Elegant HTTP Caching for Python
5
5
  Project-URL: Homepage, https://hishel.com
6
6
  Project-URL: Source, https://github.com/karpetrosyan/hishel
@@ -406,198 +406,220 @@ Hishel is inspired by and builds upon the excellent work in the Python HTTP ecos
406
406
  <strong>Made with ❤️ by <a href="https://github.com/karpetrosyan">Kar Petrosyan</a></strong>
407
407
  </p>
408
408
 
409
+ ## What's Changed in 1.1.3
410
+ ### ⚙️ Miscellaneous Tasks
411
+
412
+ * improve git-cliff docs by @karpetrosyan
413
+ ### 🐛 Bug Fixes
414
+
415
+ * fix: add BaseFilter to __all__ exports by @martinblech in [#408](https://github.com/karpetrosyan/hishel/pull/408)
416
+ * fix: set `after_revalidation=True` for `NeedsToBeUpdated` -> `FromCache` transition by @jlopex in [#402](https://github.com/karpetrosyan/hishel/pull/402)
417
+
418
+ ### Contributors
419
+ * @martinblech
420
+ * @jlopex
421
+ * @karpetrosyan
422
+
423
+ **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.2...1.1.3
424
+
409
425
  ## What's Changed in 1.1.2
410
- * fix: respect shared option when excluding unstorable headers by @karpetrosyan
411
- * fix: remove s-maxage consideration for private caches by @karpetrosyan
412
- * fix: respect shared option when excluding unstorable headers by @jlopex in [#401](https://github.com/karpetrosyan/hishel/pull/401)
413
- * fix: remove s-maxage consideration for private caches by @jlopex in [#400](https://github.com/karpetrosyan/hishel/pull/400)
414
- * fix: ensure 304 responses don't leak by @karpetrosyan
426
+ ### 🐛 Bug Fixes
427
+
428
+ * respect shared option when excluding unstorable headers by @karpetrosyan
429
+ * remove s-maxage consideration for private caches by @karpetrosyan
430
+ * ensure 304 responses don't leak by @karpetrosyan
415
431
 
416
- ## New Contributors
417
- * @jlopex made their first contribution in [#401](https://github.com/karpetrosyan/hishel/pull/401)
432
+ ### Contributors
433
+ * @karpetrosyan
434
+ * @jlopex
418
435
 
419
436
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.1...1.1.2
420
437
 
421
438
  ## What's Changed in 1.1.1
422
- * Revert "Revert "chore(deps): bump actions/upload-artifact from 4 to 5 "" by @karpetrosyan
423
- * Revert "chore(deps): bump actions/download-artifact from 4 to 6 " by @karpetrosyan
424
- * Revert "chore(deps): bump actions/upload-artifact from 4 to 5 " by @karpetrosyan
425
- * update uv.lock by @karpetrosyan
426
- * Version 1.1.1 by @karpetrosyan
439
+ ### ⚙️ Miscellaneous Tasks
440
+
441
+ * chore(deps-dev): bump the python-packages group with 10 updates by @dependabot[bot] in [#396](https://github.com/karpetrosyan/hishel/pull/396)
442
+ ### 📦 Dependencies
443
+
444
+ * chore(deps): bump astral-sh/setup-uv from 5 to 7 by @dependabot[bot] in [#393](https://github.com/karpetrosyan/hishel/pull/393)
445
+ * chore(deps): bump actions/download-artifact from 4 to 6 by @dependabot[bot] in [#394](https://github.com/karpetrosyan/hishel/pull/394)
446
+ * chore(deps): bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in [#395](https://github.com/karpetrosyan/hishel/pull/395)
447
+
448
+ ### Contributors
449
+ * @karpetrosyan
450
+ * @dependabot[bot]
427
451
 
428
452
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.0...1.1.1
429
453
 
430
454
  ## What's Changed in 1.1.0
431
- * Version 1.1.0 by @karpetrosyan
432
- * fix: pass any response with non-expected status code on revalidation to client by @karpetrosyan
433
- * fix: pass any response with non-expected status code on revalidation to client by @karpetrosyan
434
- * feat: allow setting storage base with via `database_path` for sqlite storage by @karpetrosyan
435
- * fix in memory example by @karpetrosyan
436
- * chore: add in memory example by @karpetrosyan
455
+ ### ⚙️ Miscellaneous Tasks
456
+
457
+ * add in memory example by @karpetrosyan
458
+ ### 🐛 Bug Fixes
459
+
460
+ * pass any response with non-expected status code on revalidation to client by @karpetrosyan
461
+ * pass any response with non-expected status code on revalidation to client by @karpetrosyan
462
+ ### 🚀 Features
463
+
464
+ * allow setting storage base with via `database_path` for sqlite storage by @karpetrosyan
465
+
466
+ ### Contributors
467
+ * @karpetrosyan
437
468
 
438
469
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0...1.1.0
439
470
 
440
471
  ## What's Changed in 1.0.0
441
- * Version 1.0.0 by @karpetrosyan
442
- * chore(docs): add examples, improve docs by @karpetrosyan
472
+ ### ⚙️ Miscellaneous Tasks
473
+
474
+ * add examples, improve docs by @karpetrosyan
475
+
476
+ ### Contributors
477
+ * @karpetrosyan
443
478
 
444
479
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0b1...1.0.0
445
480
 
446
481
  ## What's Changed in 1.0.0b1
447
- * Version 1.0.0b1 by @karpetrosyan
448
- * improve docs by @karpetrosyan
449
- * fix: filter out `Transfer-Encoding` header for asgi responses by @karpetrosyan
450
- * fix body sensitive docs by @karpetrosyan
451
- * refactor: add policies by @karpetrosyan
452
- * chore(docs): add graphql docs by @karpetrosyan
453
- * feat: add global `use_body_key` setting by @karpetrosyan
454
- * chore(docs): improve sans-io diagram colors by @karpetrosyan
455
- * fix: body-sensitive responses caching by @karpetrosyan
456
- * mention body sensitive content caching by @karpetrosyan
457
- * clean up roadmap by @karpetrosyan
482
+ ### ♻️ Refactoring
483
+
484
+ * add policies by @karpetrosyan
485
+ ### ⚙️ Miscellaneous Tasks
486
+
487
+ * add graphql docs by @karpetrosyan
488
+ * improve sans-io diagram colors by @karpetrosyan
489
+ ### 🐛 Bug Fixes
490
+
491
+ * filter out `Transfer-Encoding` header for asgi responses by @karpetrosyan
492
+ * body-sensitive responses caching by @karpetrosyan
493
+ ### 🚀 Features
494
+
495
+ * add global `use_body_key` setting by @karpetrosyan
496
+
497
+ ### Contributors
498
+ * @karpetrosyan
458
499
 
459
500
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev3...1.0.0b1
460
501
 
461
502
  ## What's Changed in 1.0.0.dev3
462
- * Version 1.0.0.dev3 by @karpetrosyan
463
- * fix ci by @karpetrosyan
464
- * fix: add date header for proper age calculation by @karpetrosyan
465
- * rename some methods by @karpetrosyan
466
- * refactor: automatically generate httpx sync integration from async by @karpetrosyan
467
- * change pairs to entries in some places by @karpetrosyan
468
- * fix lint format by @karpetrosyan
469
- * refactor: replace pairs with entries, simplify storage API by @karpetrosyan
470
- * better docs by @karpetrosyan
471
- * better custom integrations docs by @karpetrosyan
472
- * more private by @karpetrosyan
473
- * fix lint, make things private by @karpetrosyan
474
- * dont fail if unasync rule was not used by @karpetrosyan
475
- * chore: more robust compressed response caching by @karpetrosyan
476
- * chore(docs): add custom integrations docs by @karpetrosyan
477
- * feat: add logging for asgi by @karpetrosyan
478
- * fix: handle httpx iterable usage instead of iterator correctly by @karpetrosyan
479
- * feat: add blacksheep integration examples by @karpetrosyan
480
- * Change note syntax for ASGI middleware by @karpetrosyan
481
- * fix lint by @karpetrosyan
482
- * feat: add integrations with fastapi and asgi by @karpetrosyan
483
- * fix readme by @karpetrosyan
484
- * add icon for introduction page by @karpetrosyan
485
- * fix test by @karpetrosyan
486
- * properly close resource by @karpetrosyan
487
- * fix: fix compressed data caching for requests by @karpetrosyan
488
- * fix: raise on consumed httpx streams, which we can't store as is (it's already decoded) by @karpetrosyan
489
- * chore(docs): simplify metadata docs by @karpetrosyan
490
- * fix: add missing permissions into `publish.yml` by @karpetrosyan
503
+ ### ♻️ Refactoring
504
+
505
+ * automatically generate httpx sync integration from async by @karpetrosyan
506
+ * replace pairs with entries, simplify storage API by @karpetrosyan
507
+ ### ⚙️ Miscellaneous Tasks
508
+
509
+ * more robust compressed response caching by @karpetrosyan
510
+ * add custom integrations docs by @karpetrosyan
511
+ * simplify metadata docs by @karpetrosyan
512
+ ### 🐛 Bug Fixes
513
+
514
+ * add date header for proper age calculation by @karpetrosyan
515
+ * handle httpx iterable usage instead of iterator correctly by @karpetrosyan
516
+ * fix compressed data caching for requests by @karpetrosyan
517
+ * raise on consumed httpx streams, which we can't store as is (it's already decoded) by @karpetrosyan
518
+ * add missing permissions into `publish.yml` by @karpetrosyan
519
+ ### 🚀 Features
520
+
521
+ * add logging for asgi by @karpetrosyan
522
+ * add blacksheep integration examples by @karpetrosyan
523
+ * add integrations with fastapi and asgi by @karpetrosyan
524
+
525
+ ### Contributors
526
+ * @karpetrosyan
491
527
 
492
528
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev2...1.0.0.dev3
493
529
 
494
530
  ## What's Changed in 1.0.0.dev2
495
- * Version 1.0.0.dev2 by @karpetrosyan
496
- * unasync by @karpetrosyan
497
- * chore: fix time travel date, explicitly specify the timezone by @karpetrosyan
498
- * fix: don't raise an error on 3xx during revalidation by @karpetrosyan
499
- * chore: add import without extras check in ci by @karpetrosyan
500
- * chore(internal): remove redundant utils and tests by @karpetrosyan
501
- * feat: add hishel_created_at response metadata by @karpetrosyan
502
- * fix: fix check for storing auth requests by @karpetrosyan
503
- * better git-cliff by @karpetrosyan
531
+ ### ⚙️ Miscellaneous Tasks
532
+
533
+ * fix time travel date, explicitly specify the timezone by @karpetrosyan
534
+ * add import without extras check in ci by @karpetrosyan
535
+ * remove redundant utils and tests by @karpetrosyan
536
+ ### 🐛 Bug Fixes
537
+
538
+ * don't raise an error on 3xx during revalidation by @karpetrosyan
539
+ * fix check for storing auth requests by @karpetrosyan
540
+ ### 🚀 Features
541
+
542
+ * add hishel_created_at response metadata by @karpetrosyan
543
+
544
+ ### Contributors
545
+ * @karpetrosyan
504
546
 
505
547
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev1...1.0.0.dev2
506
548
 
507
549
  ## What's Changed in 1.0.0.dev1
508
- * Version 1.0.0.dev1 by @karpetrosyan
509
- * fix changelog + uv lock by @karpetrosyan
510
- * fix linting by @karpetrosyan
511
- * chore(internal): remove some redundant utils methods by @karpetrosyan
512
- * fix mike deploy by @karpetrosyan
550
+ ### ⚙️ Miscellaneous Tasks
551
+
552
+ * remove some redundant utils methods by @karpetrosyan
553
+ ### 📦 Dependencies
554
+
555
+ * improve git-cliff by @karpetrosyan
556
+ * install async extra with httpx by @karpetrosyan
557
+ * make `anysqlite` optional dependency by @karpetrosyan
558
+ * make httpx and async libs optional dependencies by @karpetrosyan
559
+
560
+ ### Contributors
561
+ * @karpetrosyan
513
562
 
514
563
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev0...1.0.0.dev1
515
564
 
516
565
  ## What's Changed in 1.0.0.dev0
517
- * fix publish.yml by @karpetrosyan
518
- * fix format by @karpetrosyan
519
- * prepare 1.0.0.dev0 release by @karpetrosyan
520
- * improve `CacheOptions` docs by @karpetrosyan
521
- * don't make release version latest by default by @karpetrosyan
522
- * fix changelog by @karpetrosyan
523
- * fix action permissions by @karpetrosyan
524
- * improve docs introduction by @karpetrosyan
525
- * better docs publishing, better project description by @karpetrosyan
526
- * fix docs publishing by @karpetrosyan
527
- * fix docs deploying by @karpetrosyan
528
- * chore(docs): improve docs versioning, deploy dev doc on ci by @karpetrosyan
529
- * fix unasync by @karpetrosyan
530
- * fix unasync by @karpetrosyan
531
- * fix unasync by @karpetrosyan
532
- * Version 1.0.0.dev0 by @karpetrosyan
533
- * chore(docs): use mike powered versioning by @karpetrosyan
534
- * fix changelog by @karpetrosyan
566
+ ### ⚙️ Miscellaneous Tasks
567
+
568
+ * improve docs versioning, deploy dev doc on ci by @karpetrosyan
569
+ * use mike powered versioning by @karpetrosyan
570
+
571
+ ### Contributors
572
+ * @karpetrosyan
535
573
 
536
574
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.5...1.0.0.dev0
537
575
 
538
576
  ## What's Changed in 0.1.5
539
- * Version 0.1.5 by @karpetrosyan in [#385](https://github.com/karpetrosyan/hishel/pull/385)
540
- * feat(perf): increase requests buffer size to 128KB, disable charset detection by @karpetrosyan
577
+ ### ⚙️ Miscellaneous Tasks
578
+
579
+ * remove some redundant files from repo by @karpetrosyan
580
+ ### 🐛 Bug Fixes
581
+
582
+ * fix some line breaks by @karpetrosyan
583
+ ### 🚀 Features
584
+
585
+ * increase requests buffer size to 128KB, disable charset detection by @karpetrosyan
541
586
  * feat: add close method to storages API by @karpetrosyan in [#384](https://github.com/karpetrosyan/hishel/pull/384)
542
- * fix headers by @karpetrosyan
543
- * fix lint by @karpetrosyan
544
- * ruff format by @karpetrosyan
545
- * feat: better cache-control parsing by @karpetrosyan
546
- * feat(perf): set chunk size to 128KB for httpx to reduce SQLite read/writes by @karpetrosyan
547
- * fix(docs): fix some line breaks by @karpetrosyan
548
- * chore: remove some redundant files from repo by @karpetrosyan
587
+ * better cache-control parsing by @karpetrosyan
588
+ * set chunk size to 128KB for httpx to reduce SQLite read/writes by @karpetrosyan
589
+
590
+ ### Contributors
591
+ * @karpetrosyan
549
592
 
550
593
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.4...0.1.5
551
594
 
552
595
  ## What's Changed in 0.1.4
553
- * Version 0.1.4 by @karpetrosyan in [#381](https://github.com/karpetrosyan/hishel/pull/381)
554
- * fix lint by @karpetrosyan
555
- * more docs! by @karpetrosyan
556
- * ensure connection is not stored by @karpetrosyan
557
- * fix annotations by @karpetrosyan
558
- * fix typing by @karpetrosyan
559
- * format by @karpetrosyan
560
- * more docs! more tests! by @karpetrosyan
561
- * lot of fixes by @karpetrosyan
562
- * remove redundant files by @karpetrosyan
563
- * remove docs footer by @karpetrosyan
564
- * fix: fix beta imports by @karpetrosyan
565
- * uv lock by @karpetrosyan
566
- * fix: create an sqlite file in a cache folder by @karpetrosyan
567
- * better unasync by @karpetrosyan
568
- * feat: better async implemetation for sqlite storage by @karpetrosyan
569
- * feat: get rid of some locks from sqlite storage by @karpetrosyan
570
- * chore(tests): move some tests to beta by @karpetrosyan
571
- * fix tests by @karpetrosyan
572
- * fix tests by @karpetrosyan
573
- * fix lint by @karpetrosyan
574
- * chore(tests): add sqlite tests for new storage by @karpetrosyan
575
- * feat: add sqlite storage for beta storages by @karpetrosyan
576
- * Adding `.venv` to `.gitignore` by @jamesbraza in [#379](https://github.com/karpetrosyan/hishel/pull/379)
577
- * Revert "add ethical ads" by @karpetrosyan
578
- * add ethical ads by @karpetrosyan
579
- * feat: allow already consumed streams with `CacheTransport` by @jamesbraza in [#377](https://github.com/karpetrosyan/hishel/pull/377)
580
- * chore(ci): fix lint script by @GugNersesyan in [#375](https://github.com/karpetrosyan/hishel/pull/375)
581
- * chore(internal): temporary remove python3.14 from CI by @karpetrosyan
596
+ ### ⚙️ Miscellaneous Tasks
597
+
598
+ * move some tests to beta by @karpetrosyan
599
+ * add sqlite tests for new storage by @karpetrosyan
600
+ * temporary remove python3.14 from CI by @karpetrosyan
582
601
  * chore(internal): remove src folder by @karpetrosyan in [#373](https://github.com/karpetrosyan/hishel/pull/373)
583
- * New storage API by @karpetrosyan in [#359](https://github.com/karpetrosyan/hishel/pull/359)
584
602
  * chore: improve CI by @karpetrosyan in [#369](https://github.com/karpetrosyan/hishel/pull/369)
603
+ ### 🐛 Bug Fixes
604
+
605
+ * fix beta imports by @karpetrosyan
606
+ * create an sqlite file in a cache folder by @karpetrosyan
607
+ ### 🚀 Features
608
+
609
+ * better async implemetation for sqlite storage by @karpetrosyan
610
+ * get rid of some locks from sqlite storage by @karpetrosyan
611
+ * add sqlite storage for beta storages by @karpetrosyan
612
+ * feat: allow already consumed streams with `CacheTransport` by @jamesbraza in [#377](https://github.com/karpetrosyan/hishel/pull/377)
585
613
  * feat: add support for a sans-IO API by @karpetrosyan in [#366](https://github.com/karpetrosyan/hishel/pull/366)
586
- * Enhance documentation with donation link by @karpetrosyan in [#368](https://github.com/karpetrosyan/hishel/pull/368)
587
- * Update README to include donation link by @karpetrosyan in [#367](https://github.com/karpetrosyan/hishel/pull/367)
588
- * Added `Metadata` to public API by @jamesbraza in [#363](https://github.com/karpetrosyan/hishel/pull/363)
589
- * Bump the python-packages group with 10 updates by @dependabot[bot] in [#354](https://github.com/karpetrosyan/hishel/pull/354)
590
- * skip anysqlite, yaml and redis tests if optional deps are missing by @mmdbalkhi in [#348](https://github.com/karpetrosyan/hishel/pull/348)
591
- * Don't bomb if directory creation races by @AstraLuma in [#353](https://github.com/karpetrosyan/hishel/pull/353)
592
- * Cleanup module imports by @deathaxe in [#351](https://github.com/karpetrosyan/hishel/pull/351)
593
-
594
- ## New Contributors
595
- * @jamesbraza made their first contribution in [#379](https://github.com/karpetrosyan/hishel/pull/379)
596
- * @GugNersesyan made their first contribution in [#375](https://github.com/karpetrosyan/hishel/pull/375)
597
- * @mmdbalkhi made their first contribution in [#348](https://github.com/karpetrosyan/hishel/pull/348)
598
- * @AstraLuma made their first contribution in [#353](https://github.com/karpetrosyan/hishel/pull/353)
599
- * @deathaxe made their first contribution in [#351](https://github.com/karpetrosyan/hishel/pull/351)
614
+
615
+ ### Contributors
616
+ * @karpetrosyan
617
+ * @jamesbraza
618
+ * @GugNersesyan
619
+ * @dependabot[bot]
620
+ * @mmdbalkhi
621
+ * @AstraLuma
622
+ * @deathaxe
600
623
 
601
624
  **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.3...0.1.4
602
625
 
603
- <!-- generated by git-cliff -->
@@ -27,7 +27,7 @@ from hishel._core.models import (
27
27
  from hishel._async_cache import AsyncCacheProxy as AsyncCacheProxy
28
28
  from hishel._sync_cache import SyncCacheProxy as SyncCacheProxy
29
29
 
30
- from hishel._policies import SpecificationPolicy, FilterPolicy, CachePolicy
30
+ from hishel._policies import SpecificationPolicy, FilterPolicy, CachePolicy, BaseFilter
31
31
 
32
32
  __all__ = (
33
33
  # New API
@@ -62,6 +62,7 @@ __all__ = (
62
62
  "AsyncCacheProxy",
63
63
  "SyncCacheProxy",
64
64
  # Policies
65
+ "BaseFilter",
65
66
  "CachePolicy",
66
67
  "SpecificationPolicy",
67
68
  "FilterPolicy",
@@ -2410,4 +2410,4 @@ class NeedToBeUpdated(State):
2410
2410
  original_request: Request
2411
2411
 
2412
2412
  def next(self) -> FromCache:
2413
- return FromCache(entry=self.updating_entries[-1], options=self.options)
2413
+ return FromCache(entry=self.updating_entries[-1], options=self.options, after_revalidation=True)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "hishel"
7
- version = "1.1.2"
7
+ version = "1.1.3"
8
8
  dynamic = ["readme"]
9
9
  description = " Elegant HTTP Caching for Python"
10
10
  license = "BSD-3-Clause"
hishel-1.1.2/CHANGELOG.md DELETED
@@ -1,195 +0,0 @@
1
- ## What's Changed in 1.1.2
2
- * fix: respect shared option when excluding unstorable headers by @karpetrosyan
3
- * fix: remove s-maxage consideration for private caches by @karpetrosyan
4
- * fix: respect shared option when excluding unstorable headers by @jlopex in [#401](https://github.com/karpetrosyan/hishel/pull/401)
5
- * fix: remove s-maxage consideration for private caches by @jlopex in [#400](https://github.com/karpetrosyan/hishel/pull/400)
6
- * fix: ensure 304 responses don't leak by @karpetrosyan
7
-
8
- ## New Contributors
9
- * @jlopex made their first contribution in [#401](https://github.com/karpetrosyan/hishel/pull/401)
10
-
11
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.1...1.1.2
12
-
13
- ## What's Changed in 1.1.1
14
- * Revert "Revert "chore(deps): bump actions/upload-artifact from 4 to 5 "" by @karpetrosyan
15
- * Revert "chore(deps): bump actions/download-artifact from 4 to 6 " by @karpetrosyan
16
- * Revert "chore(deps): bump actions/upload-artifact from 4 to 5 " by @karpetrosyan
17
- * update uv.lock by @karpetrosyan
18
- * Version 1.1.1 by @karpetrosyan
19
-
20
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.1.0...1.1.1
21
-
22
- ## What's Changed in 1.1.0
23
- * Version 1.1.0 by @karpetrosyan
24
- * fix: pass any response with non-expected status code on revalidation to client by @karpetrosyan
25
- * fix: pass any response with non-expected status code on revalidation to client by @karpetrosyan
26
- * feat: allow setting storage base with via `database_path` for sqlite storage by @karpetrosyan
27
- * fix in memory example by @karpetrosyan
28
- * chore: add in memory example by @karpetrosyan
29
-
30
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0...1.1.0
31
-
32
- ## What's Changed in 1.0.0
33
- * Version 1.0.0 by @karpetrosyan
34
- * chore(docs): add examples, improve docs by @karpetrosyan
35
-
36
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0b1...1.0.0
37
-
38
- ## What's Changed in 1.0.0b1
39
- * Version 1.0.0b1 by @karpetrosyan
40
- * improve docs by @karpetrosyan
41
- * fix: filter out `Transfer-Encoding` header for asgi responses by @karpetrosyan
42
- * fix body sensitive docs by @karpetrosyan
43
- * refactor: add policies by @karpetrosyan
44
- * chore(docs): add graphql docs by @karpetrosyan
45
- * feat: add global `use_body_key` setting by @karpetrosyan
46
- * chore(docs): improve sans-io diagram colors by @karpetrosyan
47
- * fix: body-sensitive responses caching by @karpetrosyan
48
- * mention body sensitive content caching by @karpetrosyan
49
- * clean up roadmap by @karpetrosyan
50
-
51
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev3...1.0.0b1
52
-
53
- ## What's Changed in 1.0.0.dev3
54
- * Version 1.0.0.dev3 by @karpetrosyan
55
- * fix ci by @karpetrosyan
56
- * fix: add date header for proper age calculation by @karpetrosyan
57
- * rename some methods by @karpetrosyan
58
- * refactor: automatically generate httpx sync integration from async by @karpetrosyan
59
- * change pairs to entries in some places by @karpetrosyan
60
- * fix lint format by @karpetrosyan
61
- * refactor: replace pairs with entries, simplify storage API by @karpetrosyan
62
- * better docs by @karpetrosyan
63
- * better custom integrations docs by @karpetrosyan
64
- * more private by @karpetrosyan
65
- * fix lint, make things private by @karpetrosyan
66
- * dont fail if unasync rule was not used by @karpetrosyan
67
- * chore: more robust compressed response caching by @karpetrosyan
68
- * chore(docs): add custom integrations docs by @karpetrosyan
69
- * feat: add logging for asgi by @karpetrosyan
70
- * fix: handle httpx iterable usage instead of iterator correctly by @karpetrosyan
71
- * feat: add blacksheep integration examples by @karpetrosyan
72
- * Change note syntax for ASGI middleware by @karpetrosyan
73
- * fix lint by @karpetrosyan
74
- * feat: add integrations with fastapi and asgi by @karpetrosyan
75
- * fix readme by @karpetrosyan
76
- * add icon for introduction page by @karpetrosyan
77
- * fix test by @karpetrosyan
78
- * properly close resource by @karpetrosyan
79
- * fix: fix compressed data caching for requests by @karpetrosyan
80
- * fix: raise on consumed httpx streams, which we can't store as is (it's already decoded) by @karpetrosyan
81
- * chore(docs): simplify metadata docs by @karpetrosyan
82
- * fix: add missing permissions into `publish.yml` by @karpetrosyan
83
-
84
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev2...1.0.0.dev3
85
-
86
- ## What's Changed in 1.0.0.dev2
87
- * Version 1.0.0.dev2 by @karpetrosyan
88
- * unasync by @karpetrosyan
89
- * chore: fix time travel date, explicitly specify the timezone by @karpetrosyan
90
- * fix: don't raise an error on 3xx during revalidation by @karpetrosyan
91
- * chore: add import without extras check in ci by @karpetrosyan
92
- * chore(internal): remove redundant utils and tests by @karpetrosyan
93
- * feat: add hishel_created_at response metadata by @karpetrosyan
94
- * fix: fix check for storing auth requests by @karpetrosyan
95
- * better git-cliff by @karpetrosyan
96
-
97
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev1...1.0.0.dev2
98
-
99
- ## What's Changed in 1.0.0.dev1
100
- * Version 1.0.0.dev1 by @karpetrosyan
101
- * fix changelog + uv lock by @karpetrosyan
102
- * fix linting by @karpetrosyan
103
- * chore(internal): remove some redundant utils methods by @karpetrosyan
104
- * fix mike deploy by @karpetrosyan
105
-
106
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/1.0.0.dev0...1.0.0.dev1
107
-
108
- ## What's Changed in 1.0.0.dev0
109
- * fix publish.yml by @karpetrosyan
110
- * fix format by @karpetrosyan
111
- * prepare 1.0.0.dev0 release by @karpetrosyan
112
- * improve `CacheOptions` docs by @karpetrosyan
113
- * don't make release version latest by default by @karpetrosyan
114
- * fix changelog by @karpetrosyan
115
- * fix action permissions by @karpetrosyan
116
- * improve docs introduction by @karpetrosyan
117
- * better docs publishing, better project description by @karpetrosyan
118
- * fix docs publishing by @karpetrosyan
119
- * fix docs deploying by @karpetrosyan
120
- * chore(docs): improve docs versioning, deploy dev doc on ci by @karpetrosyan
121
- * fix unasync by @karpetrosyan
122
- * fix unasync by @karpetrosyan
123
- * fix unasync by @karpetrosyan
124
- * Version 1.0.0.dev0 by @karpetrosyan
125
- * chore(docs): use mike powered versioning by @karpetrosyan
126
- * fix changelog by @karpetrosyan
127
-
128
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.5...1.0.0.dev0
129
-
130
- ## What's Changed in 0.1.5
131
- * Version 0.1.5 by @karpetrosyan in [#385](https://github.com/karpetrosyan/hishel/pull/385)
132
- * feat(perf): increase requests buffer size to 128KB, disable charset detection by @karpetrosyan
133
- * feat: add close method to storages API by @karpetrosyan in [#384](https://github.com/karpetrosyan/hishel/pull/384)
134
- * fix headers by @karpetrosyan
135
- * fix lint by @karpetrosyan
136
- * ruff format by @karpetrosyan
137
- * feat: better cache-control parsing by @karpetrosyan
138
- * feat(perf): set chunk size to 128KB for httpx to reduce SQLite read/writes by @karpetrosyan
139
- * fix(docs): fix some line breaks by @karpetrosyan
140
- * chore: remove some redundant files from repo by @karpetrosyan
141
-
142
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.4...0.1.5
143
-
144
- ## What's Changed in 0.1.4
145
- * Version 0.1.4 by @karpetrosyan in [#381](https://github.com/karpetrosyan/hishel/pull/381)
146
- * fix lint by @karpetrosyan
147
- * more docs! by @karpetrosyan
148
- * ensure connection is not stored by @karpetrosyan
149
- * fix annotations by @karpetrosyan
150
- * fix typing by @karpetrosyan
151
- * format by @karpetrosyan
152
- * more docs! more tests! by @karpetrosyan
153
- * lot of fixes by @karpetrosyan
154
- * remove redundant files by @karpetrosyan
155
- * remove docs footer by @karpetrosyan
156
- * fix: fix beta imports by @karpetrosyan
157
- * uv lock by @karpetrosyan
158
- * fix: create an sqlite file in a cache folder by @karpetrosyan
159
- * better unasync by @karpetrosyan
160
- * feat: better async implemetation for sqlite storage by @karpetrosyan
161
- * feat: get rid of some locks from sqlite storage by @karpetrosyan
162
- * chore(tests): move some tests to beta by @karpetrosyan
163
- * fix tests by @karpetrosyan
164
- * fix tests by @karpetrosyan
165
- * fix lint by @karpetrosyan
166
- * chore(tests): add sqlite tests for new storage by @karpetrosyan
167
- * feat: add sqlite storage for beta storages by @karpetrosyan
168
- * Adding `.venv` to `.gitignore` by @jamesbraza in [#379](https://github.com/karpetrosyan/hishel/pull/379)
169
- * Revert "add ethical ads" by @karpetrosyan
170
- * add ethical ads by @karpetrosyan
171
- * feat: allow already consumed streams with `CacheTransport` by @jamesbraza in [#377](https://github.com/karpetrosyan/hishel/pull/377)
172
- * chore(ci): fix lint script by @GugNersesyan in [#375](https://github.com/karpetrosyan/hishel/pull/375)
173
- * chore(internal): temporary remove python3.14 from CI by @karpetrosyan
174
- * chore(internal): remove src folder by @karpetrosyan in [#373](https://github.com/karpetrosyan/hishel/pull/373)
175
- * New storage API by @karpetrosyan in [#359](https://github.com/karpetrosyan/hishel/pull/359)
176
- * chore: improve CI by @karpetrosyan in [#369](https://github.com/karpetrosyan/hishel/pull/369)
177
- * feat: add support for a sans-IO API by @karpetrosyan in [#366](https://github.com/karpetrosyan/hishel/pull/366)
178
- * Enhance documentation with donation link by @karpetrosyan in [#368](https://github.com/karpetrosyan/hishel/pull/368)
179
- * Update README to include donation link by @karpetrosyan in [#367](https://github.com/karpetrosyan/hishel/pull/367)
180
- * Added `Metadata` to public API by @jamesbraza in [#363](https://github.com/karpetrosyan/hishel/pull/363)
181
- * Bump the python-packages group with 10 updates by @dependabot[bot] in [#354](https://github.com/karpetrosyan/hishel/pull/354)
182
- * skip anysqlite, yaml and redis tests if optional deps are missing by @mmdbalkhi in [#348](https://github.com/karpetrosyan/hishel/pull/348)
183
- * Don't bomb if directory creation races by @AstraLuma in [#353](https://github.com/karpetrosyan/hishel/pull/353)
184
- * Cleanup module imports by @deathaxe in [#351](https://github.com/karpetrosyan/hishel/pull/351)
185
-
186
- ## New Contributors
187
- * @jamesbraza made their first contribution in [#379](https://github.com/karpetrosyan/hishel/pull/379)
188
- * @GugNersesyan made their first contribution in [#375](https://github.com/karpetrosyan/hishel/pull/375)
189
- * @mmdbalkhi made their first contribution in [#348](https://github.com/karpetrosyan/hishel/pull/348)
190
- * @AstraLuma made their first contribution in [#353](https://github.com/karpetrosyan/hishel/pull/353)
191
- * @deathaxe made their first contribution in [#351](https://github.com/karpetrosyan/hishel/pull/351)
192
-
193
- **Full Changelog**: https://github.com/karpetrosyan/hishel/compare/0.1.3...0.1.4
194
-
195
- <!-- generated by git-cliff -->
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