Update dependency requests_cache to v0.9.8 #163
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.6.4
->==0.9.8
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
requests-cache/requests-cache (requests_cache)
v0.9.8
Compare Source
DeprecationWarning
raised byBaseCache.urls
BaseCache.delete
Backport fixes from 1.0:
omit_if_default
v0.9.7
Compare Source
Backport compatibility fixes from 1.0:
AttributeError
due to undetected imports when requests-cache is bundled in a PyInstaller packageAttributeError
when attempting to unpickle aCachedSession
object, and instead disable pickling by raising aNotImplementedError
Add the following for forwards-compatibility with 1.0:
DeprecationWarnings
to give an earlier notice for methods deprecated (not removed) in 1.0requests_cache.policy
subpackage (will replacerequests_cache.cache_control
module)BaseCache.contains()
BaseCache.delete()
BaseCache.filter()
CachedSession.settings
v0.9.6
Compare Source
Backport fixes from 1.0:
BaseCache.__str__()
v0.9.5
Compare Source
Backport fixes from 1.0:
install_cache()
CachedRequest.path_url
propertyv0.9.4
Compare Source
Backport fixes from 1.0:
RedisCache
for redis-py 4.2 and python <=3.8MongoCache
for pymongo 4.1 and python <=3.8v0.9.3
Compare Source
bson
and standalonebson
codec.CorruptGridFile
error in GridFS backend~/...
) for SQLite and filesystem backendsbefore it is read by a different thread
v0.9.2
Compare Source
params
as a positional argument toCachedSession.request()
CachedSession.request(..., expire_after=-1)
v0.9.1
Compare Source
ForwardRef
types during deserialization)v0.9.0
Compare Source
See all issues and PRs for 0.9
🕗 Expiration & headers:
Cache-Control
request headers by defaultCache-Control: immutable
Cache-Control: max-age=0
andExpires: 0
304 Not Modified
response is receivedexpire_after
param forCachedSession.send()
💾 Backends:
🚀 Performance:
CachedSession.request()
andCachedSession.send()
🪲 Bugfixes:
BaseCache
keyword arguments passed along with a backend instancecache_control=True
is used with anexpire_after
valueCachedResponse
serialization behavior when using stdlibpickle
in a custom serializer0.8.1 (2021-09-15)
ignored_parameters
fromCachedResponse.url
(if used for credentials or other sensitive info)DbDict
, etc. so fully qualified imports don't breakv0.8.1
Compare Source
ignored_parameters
fromCachedResponse.url
(if used for credentials or other sensitive info)DbDict
, etc. so fully qualified imports don't breakv0.8.0
Compare Source
See all issues and PRs for 0.8
🕗 Expiration & headers:
ETag
+If-None-Match
headersLast-Modified
+If-Modified-Since
headers304 Not Modified
responses💾 Backends:
FileCache.cache_dir
wrapper propertyFileCache.paths()
methoduse_cache_dir
option to use platform-specific user cache directorypathlib.Path
objects for all file pathsSQLiteCache.db_path
wrapper propertyuse_memory
option and support for in-memory databasesuse_cache_dir
option to use platform-specific user cache directorypathlib.Path
objects for all file paths🚀 Performance:
cattrs
by default for optimized serializationcreate_key()
to optionally accept parameters forrequests.Request
instead of a request objectmatch_headers
to optionally accept a list of specific headers to matchkey_fn
parameterℹ️ Cache convenience methods:
BaseCache.update()
method as a shortcut for exporting to a different cache instanceBaseCache.has_url()
anddelete_url()
to optionally take parameters forrequests.Request
instead of just a URL📦 Dependencies:
appdirs
as a dependency for easier cross-platform usage of user cache directoriescattrs
from optional to required dependencyitsdangerous
from required to optional (but recommended) dependencyrequests
2.22+ andurllib3
1.25.5+The following changes are meant to make certain behaviors more obvious for new users, without breaking existing usage:
Cache-Control: stale-if-error
, renameold_data_on_error
tostale_if_error
include_get_headers
tomatch_headers
backends.sqlite.Db*
->SQLiteCache
,SQLiteDict
,SQLitePickleDict
core
moduleBaseCache.remove_old_entries()
method0.7.5 (2021-09-15)
redirects.sqlite
when using filesystem backendredirects.sqlite
would get included in response paths with filesystem backend0.7.4 (2021-08-16)
Expires
headers not getting converted to UTC0.7.3 (2021-08-10)
DbCache.clear()
to succeed even if the database is corruptedDbDict.bulk_delete()
to split the operation into multiple statements to support deleting more items than SQLite's variable limit (999).json
,.yaml
,.pkl
, etc.) by default; can be overridden or disabled with theextension
parameter.BaseCache.delete_urls()
method to bulk delete multiple responses from the cache based onrequest URL
0.7.2 (2021-07-21)
Response.next
(to get the next request in a redirect chain) when 302 responses are cached directlyCachedResponse.cache_key
attributeCachedResponse
a non-slotted class to allow client code to set arbitrary attributes on it0.7.1 (2021-07-09)
v0.7.5
Compare Source
redirects.sqlite
when using filesystem backendredirects.sqlite
would get included in response paths with filesystem backendv0.7.4
Compare Source
Expires
headers not getting converted to UTCv0.7.3
Compare Source
DbCache.clear()
to succeed even if the database is corruptedDbDict.bulk_delete()
to split the operation into multiple statements to support deleting more items than SQLite's variable limit (999).json
,.yaml
,.pkl
, etc.) by default; can be overridden or disabled with theextension
parameter.BaseCache.delete_urls()
method to bulk delete multiple responses from the cache based onrequest URL
v0.7.2
Compare Source
Response.next
(to get the next request in a redirect chain) when 302 responses are cached directlyCachedResponse.cache_key
attributeCachedResponse
a non-slotted class to allow client code to set arbitrary attributes on itv0.7.1
Compare Source
v0.7.0
Compare Source
See all issues and PRs for 0.7
🕗 Expiration & headers:
Cache-Control: max-age
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: max-age
Cache-Control: no-store
Expires
cache_control
option toCachedSession
to enable setting expiration with cache headersexpire_after
parametersexpire_after=0
💾 Backends:
DynamoDbDict.__iter__
to return keys instead of valuesboto3.resource
Collection.find_and_modify()
pymongo.MongoClient
redis.Redis
use_temp
option to store files in a temp directorysqlite3.connect
💾 Serialization:
cattrs
ultrajson
ignored_parameters
to also exclude ignored request params, body params, or headers from cached response data (to avoid storing API keys or other credentials)old_data_on_error
option to also handle error response codesold_data_on_error
is setℹ️ Convenience methods:
BaseCache.save_response()
BaseCache.keys()
andvalues()
methodsBaseCache.response_count()
method to get an accurate count of responses (excluding invalid and expired)str(CachedResponse)
CachedSession
,CachedResponse
, andBaseCache
BaseCache.urls
to only skip invalid responses, not delete them (for better performance)📦 Dependencies:
requests
version of2.17
attrs
as a dependency for improved serialization modelscattrs
as an optional dependencypip install
):requests-cache[all]
(to install everything)requests-cache[bson]
requests-cache[json]
requests-cache[dynamodb]
requests-cache[mongodb]
requests-cache[redis]
📦 Compatibility and packaging:
requests 2.17
and2.18
requests
0.6.4 (2021-06-04)
filter_fn()
would get called onresponse.request
instead ofresponse
0.6.3 (2021-04-21)
include_get_headers
decode_content
parameter forCachedResponse.raw.read()
Collection.count()
withestimated_document_count()
0.6.2 (2021-04-14)
0.6.1 (2021-04-13)
BaseCache.urls
BaseCache.remove_old_entries()
back, as an alias with a DeprecationWarningaws_access_key_id
andaws_secret_access_key
kwargs toDynamoDbDict
GridFSPickleDict.__delitem__
to raise a KeyError for missing itemslogging.info
statements to debug levelfind_packages()
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.