CacheControl 0.14.3__py3-none-any.whl → 0.15.0__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.
cachecontrol/__init__.py CHANGED
@@ -7,14 +7,16 @@
7
7
  Make it easy to import from cachecontrol without long namespaces.
8
8
  """
9
9
 
10
- __author__ = "Eric Larson"
11
- __email__ = "eric@ionrock.org"
12
- __version__ = "0.14.3"
10
+ import importlib.metadata
13
11
 
14
12
  from cachecontrol.adapter import CacheControlAdapter
15
13
  from cachecontrol.controller import CacheController
16
14
  from cachecontrol.wrapper import CacheControl
17
15
 
16
+ __author__ = "Eric Larson"
17
+ __email__ = "eric@ionrock.org"
18
+ __version__ = importlib.metadata.version("cachecontrol")
19
+
18
20
  __all__ = [
19
21
  "__author__",
20
22
  "__email__",
cachecontrol/adapter.py CHANGED
@@ -4,7 +4,6 @@
4
4
  from __future__ import annotations
5
5
 
6
6
  import functools
7
- import types
8
7
  import weakref
9
8
  import zlib
10
9
  from typing import TYPE_CHECKING, Any, Collection, Mapping
@@ -145,6 +144,10 @@ class CacheControlAdapter(HTTPAdapter):
145
144
  super_update_chunk_length(self)
146
145
  if self.chunk_left == 0:
147
146
  self._fp._close() # type: ignore[union-attr]
147
+ elif self.chunk_left is not None:
148
+ self._fp._set_chunk_bytes_remaining( # type: ignore[union-attr]
149
+ self.chunk_left
150
+ )
148
151
 
149
152
  response._update_chunk_length = functools.partial( # type: ignore[method-assign]
150
153
  _update_chunk_length, weakref.ref(response)
@@ -23,16 +23,21 @@ class RedisCache(BaseCache):
23
23
  def set(
24
24
  self, key: str, value: bytes, expires: int | datetime | None = None
25
25
  ) -> None:
26
+ """Store ``value``, optionally expiring it after ``expires``.
27
+ """
26
28
  if not expires:
27
29
  self.conn.set(key, value)
28
- elif isinstance(expires, datetime):
30
+ return
31
+
32
+ if isinstance(expires, datetime):
29
33
  now_utc = datetime.now(timezone.utc)
30
34
  if expires.tzinfo is None:
31
35
  now_utc = now_utc.replace(tzinfo=None)
32
- delta = expires - now_utc
33
- self.conn.setex(key, int(delta.total_seconds()), value)
36
+ ttl = int((expires - now_utc).total_seconds())
34
37
  else:
35
- self.conn.setex(key, expires, value)
38
+ ttl = expires
39
+
40
+ self.conn.setex(key, ttl, value)
36
41
 
37
42
  def delete(self, key: str) -> None:
38
43
  self.conn.delete(key)
@@ -13,6 +13,7 @@ import logging
13
13
  import re
14
14
  import time
15
15
  import weakref
16
+ from contextlib import closing
16
17
  from email.utils import parsedate_tz
17
18
  from typing import TYPE_CHECKING, Collection, Mapping
18
19
 
@@ -70,7 +71,8 @@ class CacheController:
70
71
  raise Exception("Only absolute URIs are allowed. uri = %s" % uri)
71
72
 
72
73
  scheme = scheme.lower()
73
- authority = authority.lower()
74
+ userinfo, separator, host = authority.rpartition("@")
75
+ authority = f"{userinfo}{separator}{host.lower()}"
74
76
 
75
77
  if not path:
76
78
  path = "/"
@@ -112,7 +114,7 @@ class CacheController:
112
114
  continue
113
115
 
114
116
  parts = cc_directive.split("=", 1)
115
- directive = parts[0].strip()
117
+ directive = parts[0].strip().lower()
116
118
 
117
119
  try:
118
120
  typ, required = known_directives[directive]
@@ -128,12 +130,12 @@ class CacheController:
128
130
  except IndexError:
129
131
  if required:
130
132
  logger.debug(
131
- "Missing value for cache-control " "directive: %s",
133
+ "Missing value for cache-control directive: %s",
132
134
  directive,
133
135
  )
134
136
  except ValueError:
135
137
  logger.debug(
136
- "Invalid value for cache-control directive " "%s, must be %s",
138
+ "Invalid value for cache-control directive %s, must be %s",
137
139
  directive,
138
140
  typ.__name__,
139
141
  )
@@ -161,9 +163,14 @@ class CacheController:
161
163
  else:
162
164
  body_file = None
163
165
 
164
- result = self.serializer.loads(request, cache_data, body_file)
166
+ result: HTTPResponse | None = None
167
+ try:
168
+ result = self.serializer.loads(request, cache_data, body_file)
169
+ finally:
170
+ if result is None and body_file is not None:
171
+ body_file.close()
165
172
  if result is None:
166
- logger.warning("Cache entry deserialization failed, entry ignored")
173
+ logger.debug("Cache entry deserialization failed, entry ignored")
167
174
  return result
168
175
 
169
176
  def cached_request(self, request: PreparedRequest) -> HTTPResponse | Literal[False]:
@@ -190,44 +197,47 @@ class CacheController:
190
197
  if not resp:
191
198
  return False
192
199
 
193
- # If we have a cached permanent redirect, return it immediately. We
194
- # don't need to test our response for other headers b/c it is
195
- # intrinsically "cacheable" as it is Permanent.
196
- #
197
- # See:
198
- # https://tools.ietf.org/html/rfc7231#section-6.4.2
199
- #
200
- # Client can try to refresh the value by repeating the request
201
- # with cache busting headers as usual (ie no-cache).
202
- if int(resp.status) in PERMANENT_REDIRECT_STATUSES:
203
- msg = (
204
- "Returning cached permanent redirect response "
205
- "(ignoring date and etag information)"
200
+ keep_response = False
201
+ try:
202
+ headers: CaseInsensitiveDict[str] = CaseInsensitiveDict(resp.headers)
203
+ date_tuple = parsedate_tz(headers.get("date", ""))
204
+ keep_response = date_tuple is not None and self._is_fresh(
205
+ resp, headers, cc, calendar.timegm(date_tuple[:6])
206
206
  )
207
- logger.debug(msg)
207
+ finally:
208
+ if not keep_response:
209
+ resp.close()
210
+
211
+ if keep_response:
208
212
  return resp
209
213
 
210
- headers: CaseInsensitiveDict[str] = CaseInsensitiveDict(resp.headers)
211
- if not headers or "date" not in headers:
212
- if "etag" not in headers:
213
- # Without date or etag, the cached response can never be used
214
- # and should be deleted.
215
- logger.debug("Purging cached response: no date or etag")
216
- self.cache.delete(cache_url)
214
+ if date_tuple is None:
215
+ if "date" in headers:
216
+ # Keep entries with unparseable dates available for revalidation.
217
+ logger.debug("Ignoring cached response: invalid date")
218
+ return False
217
219
  logger.debug("Ignoring cached response: no date")
218
- return False
219
220
 
220
- now = time.time()
221
- time_tuple = parsedate_tz(headers["date"])
222
- assert time_tuple is not None
223
- date = calendar.timegm(time_tuple[:6])
224
- current_age = max(0, now - date)
221
+ if "etag" not in headers:
222
+ logger.debug("Purging cached response: stale or missing date, with no ETag")
223
+ self.cache.delete(cache_url)
224
+ return False
225
+
226
+ def _is_fresh(
227
+ self,
228
+ resp: HTTPResponse,
229
+ headers: Mapping[str, str],
230
+ request_cc: Mapping[str, int | None],
231
+ date: int,
232
+ ) -> bool:
233
+ current_age = max(0, time.time() - date)
225
234
  logger.debug("Current age based on date: %i", current_age)
226
235
 
227
- # TODO: There is an assumption that the result will be a
228
- # urllib3 response object. This may not be best since we
229
- # could probably avoid instantiating or constructing the
230
- # response until we know we need it.
236
+ # Apply normal freshness checks to every cached response. In the case
237
+ # of permanent redirects, RFC 9110 sections 15.4.2 and 15.4.9 permit
238
+ # heuristic caching, but RFC 9111 section 4.2.2 requires explicit
239
+ # expiration to take precedence. The redirect fallback below is used
240
+ # only when neither max-age nor Expires provides an expiration.
231
241
  resp_cc = self.parse_cache_control(headers)
232
242
 
233
243
  # determine freshness
@@ -247,16 +257,22 @@ class CacheController:
247
257
  freshness_lifetime = max(0, expire_time)
248
258
  logger.debug("Freshness lifetime from expires: %i", freshness_lifetime)
249
259
 
260
+ # Permanent redirects are heuristically cacheable when the response
261
+ # does not provide an explicit freshness lifetime.
262
+ elif int(resp.status) in PERMANENT_REDIRECT_STATUSES:
263
+ logger.debug("Returning cached permanent redirect response")
264
+ return True
265
+
250
266
  # Determine if we are setting freshness limit in the
251
267
  # request. Note, this overrides what was in the response.
252
- max_age = cc.get("max-age")
268
+ max_age = request_cc.get("max-age")
253
269
  if max_age is not None:
254
270
  freshness_lifetime = max_age
255
271
  logger.debug(
256
272
  "Freshness lifetime from request max-age: %i", freshness_lifetime
257
273
  )
258
274
 
259
- min_fresh = cc.get("min-fresh")
275
+ min_fresh = request_cc.get("min-fresh")
260
276
  if min_fresh is not None:
261
277
  # adjust our current age by our min fresh
262
278
  current_age += min_fresh
@@ -266,21 +282,16 @@ class CacheController:
266
282
  if freshness_lifetime > current_age:
267
283
  logger.debug('The response is "fresh", returning cached response')
268
284
  logger.debug("%i > %i", freshness_lifetime, current_age)
269
- return resp
285
+ return True
270
286
 
271
- # we're not fresh. If we don't have an Etag, clear it out
272
- if "etag" not in headers:
273
- logger.debug('The cached response is "stale" with no etag, purging')
274
- self.cache.delete(cache_url)
275
-
276
- # return the original handler
277
287
  return False
278
288
 
279
289
  def conditional_headers(self, request: PreparedRequest) -> dict[str, str]:
280
290
  resp = self._load_from_cache(request)
281
- new_headers = {}
282
-
283
- if resp:
291
+ if not resp:
292
+ return {}
293
+ with closing(resp):
294
+ new_headers = {}
284
295
  headers: CaseInsensitiveDict[str] = CaseInsensitiveDict(resp.headers)
285
296
 
286
297
  if "etag" in headers:
@@ -289,7 +300,7 @@ class CacheController:
289
300
  if "last-modified" in headers:
290
301
  new_headers["If-Modified-Since"] = headers["Last-Modified"]
291
302
 
292
- return new_headers
303
+ return new_headers
293
304
 
294
305
  def _cache_set(
295
306
  self,
@@ -299,9 +310,14 @@ class CacheController:
299
310
  body: bytes | None = None,
300
311
  expires_time: int | None = None,
301
312
  ) -> None:
313
+ """Store the data in the cache.
302
314
  """
303
- Store the data in the cache.
304
- """
315
+ if expires_time is not None and expires_time <= 0:
316
+ # Already stale on arrival
317
+ logger.debug("Purging cached response: expires in the past")
318
+ self.cache.delete(cache_url)
319
+ return
320
+
305
321
  if isinstance(self.cache, SeparateBodyBaseCache):
306
322
  # We pass in the body separately; just put a placeholder empty
307
323
  # string in the metadata.
@@ -358,8 +374,7 @@ class CacheController:
358
374
 
359
375
  if "date" in response_headers:
360
376
  time_tuple = parsedate_tz(response_headers["date"])
361
- assert time_tuple is not None
362
- date = calendar.timegm(time_tuple[:6])
377
+ date = calendar.timegm(time_tuple[:6]) if time_tuple is not None else 0
363
378
  else:
364
379
  date = 0
365
380
 
@@ -430,7 +445,8 @@ class CacheController:
430
445
  # the cache.
431
446
  elif "date" in response_headers:
432
447
  time_tuple = parsedate_tz(response_headers["date"])
433
- assert time_tuple is not None
448
+ if time_tuple is None:
449
+ return
434
450
  date = calendar.timegm(time_tuple[:6])
435
451
  # cache when there is a max-age > 0
436
452
  max_age = cc.get("max-age")
@@ -450,11 +466,15 @@ class CacheController:
450
466
  elif "expires" in response_headers:
451
467
  if response_headers["expires"]:
452
468
  expires = parsedate_tz(response_headers["expires"])
453
- if expires is not None:
454
- expires_time = calendar.timegm(expires[:6]) - date
469
+ if expires is None:
470
+ # https://tools.ietf.org/html/rfc9111#section-5.3: an
471
+ # invalid Expires must be read as a time in the past.
472
+ expires_time = 0
455
473
  else:
456
- expires_time = None
474
+ expires_time = calendar.timegm(expires[:6]) - date
457
475
 
476
+ # A non-positive lifetime here means the response arrived
477
+ # stale
458
478
  logger.debug(
459
479
  "Caching b/c of expires header. expires in {} seconds".format(
460
480
  expires_time
@@ -485,27 +505,19 @@ class CacheController:
485
505
  # we didn't have a cached response
486
506
  return response
487
507
 
488
- # Lets update our headers with the headers from the new request:
489
- # http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-26#section-4.1
490
- #
491
- # The server isn't supposed to send headers that would make
492
- # the cached body invalid. But... just in case, we'll be sure
493
- # to strip out ones we know that might be problmatic due to
494
- # typical assumptions.
495
- excluded_headers = ["content-length"]
496
-
497
- cached_response.headers.update(
498
- {
499
- k: v
500
- for k, v in response.headers.items()
501
- if k.lower() not in excluded_headers
502
- }
503
- )
504
-
505
- # we want a 200 b/c we have content via the cache
506
- cached_response.status = 200
507
-
508
- # update our cache
509
- self._cache_set(cache_url, request, cached_response)
508
+ try:
509
+ # A 304 updates the headers while keeping the cached body and its length.
510
+ cached_response.headers.update(
511
+ {
512
+ k: v
513
+ for k, v in response.headers.items()
514
+ if k.lower() != "content-length"
515
+ }
516
+ )
517
+ cached_response.status = 200
518
+ self._cache_set(cache_url, request, cached_response)
519
+ except BaseException:
520
+ cached_response.close()
521
+ raise
510
522
 
511
523
  return cached_response
@@ -8,6 +8,7 @@ from tempfile import NamedTemporaryFile
8
8
  from typing import TYPE_CHECKING, Any, Callable
9
9
 
10
10
  if TYPE_CHECKING:
11
+ from collections.abc import Buffer
11
12
  from http.client import HTTPResponse
12
13
 
13
14
 
@@ -31,11 +32,12 @@ class CallbackFileWrapper:
31
32
  """
32
33
 
33
34
  def __init__(
34
- self, fp: HTTPResponse, callback: Callable[[bytes], None] | None
35
+ self, fp: HTTPResponse, callback: Callable[[Buffer], None] | None
35
36
  ) -> None:
36
37
  self.__buf = NamedTemporaryFile("rb+", delete=True)
37
38
  self.__fp = fp
38
39
  self.__callback = callback
40
+ self.__chunk_bytes_remaining = 0
39
41
 
40
42
  def __getattr__(self, name: str) -> Any:
41
43
  # The vagaries of garbage collection means that self.__fp is
@@ -68,6 +70,7 @@ class CallbackFileWrapper:
68
70
  return False
69
71
 
70
72
  def _close(self) -> None:
73
+ result: Buffer
71
74
  if self.__callback:
72
75
  if self.__buf.tell() == 0:
73
76
  # Empty file:
@@ -105,14 +108,16 @@ class CallbackFileWrapper:
105
108
 
106
109
  return data
107
110
 
111
+ def _set_chunk_bytes_remaining(self, chunk_bytes_remaining: int) -> None:
112
+ self.__chunk_bytes_remaining = chunk_bytes_remaining
113
+
108
114
  def _safe_read(self, amt: int) -> bytes:
109
115
  data: bytes = self.__fp._safe_read(amt) # type: ignore[attr-defined]
110
- if amt == 2 and data == b"\r\n":
111
- # urllib executes this read to toss the CRLF at the end
112
- # of the chunk.
116
+ if self.__chunk_bytes_remaining == 0 and amt == 2:
113
117
  return data
114
118
 
115
119
  self.__buf.write(data)
120
+ self.__chunk_bytes_remaining -= len(data)
116
121
  if self.__is_fp_closed():
117
122
  self._close()
118
123
 
cachecontrol/serialize.py CHANGED
@@ -68,6 +68,11 @@ class Serializer:
68
68
  data: bytes,
69
69
  body_file: IO[bytes] | None = None,
70
70
  ) -> HTTPResponse | None:
71
+ """Return a fresh response owned by the caller, or None for a cache miss.
72
+
73
+ A returned response owns the supplied body file. On a miss or an
74
+ exception, the caller retains ownership of the file.
75
+ """
71
76
  # Short circuit if we've been given an empty set of data
72
77
  if not data:
73
78
  return None
@@ -1,46 +1,32 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: CacheControl
3
- Version: 0.14.3
3
+ Version: 0.15.0
4
4
  Summary: httplib2 caching for requests
5
5
  Keywords: requests,http,caching,web
6
+ Author: Eric Larson, Frost Ming, William Woodruff
6
7
  Author-email: Eric Larson <ericlarson@ionrock.com>, Frost Ming <me@frostming.com>, William Woodruff <william@yossarian.net>
7
- Requires-Python: >=3.9
8
- Description-Content-Type: text/x-rst
9
8
  License-Expression: Apache-2.0
9
+ License-File: LICENSE.txt
10
10
  Classifier: Development Status :: 4 - Beta
11
11
  Classifier: Environment :: Web Environment
12
12
  Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python :: 3.9
14
13
  Classifier: Programming Language :: Python :: 3.10
15
14
  Classifier: Programming Language :: Python :: 3.11
16
15
  Classifier: Programming Language :: Python :: 3.12
17
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Topic :: Internet :: WWW/HTTP
19
- License-File: LICENSE.txt
20
- Requires-Dist: requests >= 2.16.0
21
- Requires-Dist: msgpack >= 0.5.2, < 2.0.0
22
- Requires-Dist: CacheControl[filecache, redis] ; extra == "dev"
23
- Requires-Dist: build ; extra == "dev"
24
- Requires-Dist: cherrypy ; extra == "dev"
25
- Requires-Dist: codespell[tomli] ; extra == "dev"
26
- Requires-Dist: furo ; extra == "dev"
27
- Requires-Dist: mypy ; extra == "dev"
28
- Requires-Dist: pytest ; extra == "dev"
29
- Requires-Dist: pytest-cov ; extra == "dev"
30
- Requires-Dist: ruff ; extra == "dev"
31
- Requires-Dist: sphinx ; extra == "dev"
32
- Requires-Dist: sphinx-copybutton ; extra == "dev"
33
- Requires-Dist: tox ; extra == "dev"
34
- Requires-Dist: types-redis ; extra == "dev"
35
- Requires-Dist: types-requests ; extra == "dev"
36
- Requires-Dist: filelock >= 3.8.0 ; extra == "filecache"
37
- Requires-Dist: redis>=2.10.5 ; extra == "redis"
19
+ Requires-Dist: requests>=2.16.0
20
+ Requires-Dist: msgpack>=0.5.2,<2.0.0
21
+ Requires-Dist: filelock>=3.8.0 ; extra == 'filecache'
22
+ Requires-Dist: redis>=2.10.5 ; extra == 'redis'
23
+ Requires-Python: >=3.10
38
24
  Project-URL: Homepage, https://pypi.org/project/CacheControl/
39
25
  Project-URL: Issues, https://github.com/psf/cachecontrol/issues
40
26
  Project-URL: Source, https://github.com/psf/cachecontrol
41
- Provides-Extra: dev
42
27
  Provides-Extra: filecache
43
28
  Provides-Extra: redis
29
+ Description-Content-Type: text/x-rst
44
30
 
45
31
  ..
46
32
  SPDX-FileCopyrightText: SPDX-FileCopyrightText: 2015 Eric Larson
@@ -89,4 +75,3 @@ For more info, check out the docs_
89
75
  .. _docs: http://cachecontrol.readthedocs.org/en/latest/
90
76
  .. _httplib2: https://github.com/httplib2/httplib2
91
77
  .. _requests: http://docs.python-requests.org/
92
-
@@ -0,0 +1,18 @@
1
+ cachecontrol/__init__.py,sha256=aMPfN_9huuMwdL8qh269agzp2ugriVc2okgB4PGHcS0,702
2
+ cachecontrol/_cmd.py,sha256=4l2UbK9N85Vr_KTkF4LjvSlsr-TZnOXTfT2NODlIMtc,1672
3
+ cachecontrol/adapter.py,sha256=9d1GRfh4L8GTx_srxY_tDkSn2nbUdqcvIHgpUb_5wDM,6707
4
+ cachecontrol/cache.py,sha256=OXwv7Fn2AwnKNiahJHnjtvaKLndvVLv_-zO-ltlV9qI,1953
5
+ cachecontrol/caches/__init__.py,sha256=3-BaJBXjdt-4iFbv-799XjzRBsd6zF9wOEqOdDuAAro,279
6
+ cachecontrol/caches/file_cache.py,sha256=0Df9CcKBaGjKF4dhkFGncLx-YHae0BOPd0jo67mG1rQ,4093
7
+ cachecontrol/caches/redis_cache.py,sha256=NP6fyxGZdlmHXVpiWzo_NCQa5-Cdj-Ck7wbSD_0AOMY,1446
8
+ cachecontrol/controller.py,sha256=oTiksBAtsOyuqY3dPlK9ocHjn3mJqha-X97ijkBUmH8,19504
9
+ cachecontrol/filewrapper.py,sha256=B1V1LE2k4QjZSFSjV7fh2bIY_NBOW6CIDX3K5uA6MJ0,4507
10
+ cachecontrol/heuristics.py,sha256=ccecGyeEycWDY_Kfnx41ebYl7eSdDCLM5X6Sx0f5fZE,4869
11
+ cachecontrol/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ cachecontrol/serialize.py,sha256=Aj4tISQHzf8NduXkfpQSp9RP28Jc83shr4GXFheBxuM,5339
13
+ cachecontrol/wrapper.py,sha256=KyaQ4Bq1RqsX-zA4pXH62nmcU511ECIGn5gCvmNIj20,1328
14
+ cachecontrol-0.15.0.dist-info/licenses/LICENSE.txt,sha256=hu7uh74qQ_P_H1ZJb0UfaSQ5JvAl_tuwM2ZsMExMFhs,558
15
+ cachecontrol-0.15.0.dist-info/WHEEL,sha256=3OmCxFA0ffBIsX4x0o8CdfSvZAOvO3mzEG8U_z5TvV4,80
16
+ cachecontrol-0.15.0.dist-info/entry_points.txt,sha256=HjCekaRCv8kfNqP5WehMR29IWxIA5VrhoOeKrCykCLc,56
17
+ cachecontrol-0.15.0.dist-info/METADATA,sha256=_HtCK5bjr48bdUlKwqka5pwcoTHpIHuGgi3ykd2_upQ,2488
18
+ cachecontrol-0.15.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.12.0
2
+ Generator: uv 0.13.8
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ doesitcache = cachecontrol._cmd:main
3
+
@@ -1,18 +0,0 @@
1
- cachecontrol/__init__.py,sha256=ZxL7cB0oN180fE6GegnvZjC4u3Qm7QEJRkXllHNE9Y8,641
2
- cachecontrol/_cmd.py,sha256=4l2UbK9N85Vr_KTkF4LjvSlsr-TZnOXTfT2NODlIMtc,1672
3
- cachecontrol/adapter.py,sha256=6WA-glAfcEfzWiMbM5XZFVnCilEGOWFwIzYaMXCENx8,6491
4
- cachecontrol/cache.py,sha256=OXwv7Fn2AwnKNiahJHnjtvaKLndvVLv_-zO-ltlV9qI,1953
5
- cachecontrol/controller.py,sha256=sBPfFSG1GY1gQ_-pPIFLrnShodU0D2h7KmPZv_l9cn4,19029
6
- cachecontrol/filewrapper.py,sha256=2ktXNPE0KqnyzF24aOsKCA58HQq1xeC6l2g6_zwjghc,4291
7
- cachecontrol/heuristics.py,sha256=ccecGyeEycWDY_Kfnx41ebYl7eSdDCLM5X6Sx0f5fZE,4869
8
- cachecontrol/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- cachecontrol/serialize.py,sha256=dP5k_UKYUAano6TKG9qlbKHbFMonz0AV_lYR3IFCGMg,5110
10
- cachecontrol/wrapper.py,sha256=KyaQ4Bq1RqsX-zA4pXH62nmcU511ECIGn5gCvmNIj20,1328
11
- cachecontrol/caches/__init__.py,sha256=3-BaJBXjdt-4iFbv-799XjzRBsd6zF9wOEqOdDuAAro,279
12
- cachecontrol/caches/file_cache.py,sha256=0Df9CcKBaGjKF4dhkFGncLx-YHae0BOPd0jo67mG1rQ,4093
13
- cachecontrol/caches/redis_cache.py,sha256=94Qw4INGwjHcCDwMnOe0gbbcP2fttrlui-e1-Yutclw,1374
14
- cachecontrol-0.14.3.dist-info/entry_points.txt,sha256=1NtpBDZSbqMMbkIxhMBtvQoF7c5Mmfd7EE9hBPG_sLs,54
15
- cachecontrol-0.14.3.dist-info/licenses/LICENSE.txt,sha256=hu7uh74qQ_P_H1ZJb0UfaSQ5JvAl_tuwM2ZsMExMFhs,558
16
- cachecontrol-0.14.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
17
- cachecontrol-0.14.3.dist-info/METADATA,sha256=qGDSdPxYWbxm6QtJlFHmX4QqdahGpNpSAkYVeKLxjL4,3065
18
- cachecontrol-0.14.3.dist-info/RECORD,,
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- doesitcache=cachecontrol._cmd:main
3
-