Update dependency requests_cache to v0.9.8#163
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
12dc975 to
20aeeb7
Compare
20aeeb7 to
e440aa4
Compare
e440aa4 to
2d4a62a
Compare
2d4a62a to
ac9d5fb
Compare
ac9d5fb to
612e1ca
Compare
612e1ca to
ef0768e
Compare
ef0768e to
f997d9b
Compare
f997d9b to
2908150
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.8Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
requests-cache/requests-cache (requests_cache)
v0.9.8Compare Source
DeprecationWarningraised byBaseCache.urlsBaseCache.deleteBackport fixes from 1.0:
omit_if_defaultv0.9.7Compare Source
Backport compatibility fixes from 1.0:
AttributeErrordue to undetected imports when requests-cache is bundled in a PyInstaller packageAttributeErrorwhen attempting to unpickle aCachedSessionobject, and instead disable pickling by raising aNotImplementedErrorAdd the following for forwards-compatibility with 1.0:
DeprecationWarningsto give an earlier notice for methods deprecated (not removed) in 1.0requests_cache.policysubpackage (will replacerequests_cache.cache_controlmodule)BaseCache.contains()BaseCache.delete()BaseCache.filter()CachedSession.settingsv0.9.6Compare Source
Backport fixes from 1.0:
BaseCache.__str__()v0.9.5Compare Source
Backport fixes from 1.0:
install_cache()CachedRequest.path_urlpropertyv0.9.4Compare Source
Backport fixes from 1.0:
RedisCachefor redis-py 4.2 and python <=3.8MongoCachefor pymongo 4.1 and python <=3.8v0.9.3Compare Source
bsonand standalonebsoncodec.CorruptGridFileerror in GridFS backend~/...) for SQLite and filesystem backendsbefore it is read by a different thread
v0.9.2Compare Source
paramsas a positional argument toCachedSession.request()CachedSession.request(..., expire_after=-1)v0.9.1Compare Source
ForwardReftypes during deserialization)v0.9.0Compare Source
See all issues and PRs for 0.9
🕗 Expiration & headers:
Cache-Controlrequest headers by defaultCache-Control: immutableCache-Control: max-age=0andExpires: 0304 Not Modifiedresponse is receivedexpire_afterparam forCachedSession.send()💾 Backends:
🚀 Performance:
CachedSession.request()andCachedSession.send()🪲 Bugfixes:
BaseCachekeyword arguments passed along with a backend instancecache_control=Trueis used with anexpire_aftervalueCachedResponseserialization behavior when using stdlibpicklein a custom serializer0.8.1 (2021-09-15)
ignored_parametersfromCachedResponse.url(if used for credentials or other sensitive info)DbDict, etc. so fully qualified imports don't breakv0.8.1Compare Source
ignored_parametersfromCachedResponse.url(if used for credentials or other sensitive info)DbDict, etc. so fully qualified imports don't breakv0.8.0Compare Source
See all issues and PRs for 0.8
🕗 Expiration & headers:
ETag+If-None-MatchheadersLast-Modified+If-Modified-Sinceheaders304 Not Modifiedresponses💾 Backends:
FileCache.cache_dirwrapper propertyFileCache.paths()methoduse_cache_diroption to use platform-specific user cache directorypathlib.Pathobjects for all file pathsSQLiteCache.db_pathwrapper propertyuse_memoryoption and support for in-memory databasesuse_cache_diroption to use platform-specific user cache directorypathlib.Pathobjects for all file paths🚀 Performance:
cattrsby default for optimized serializationcreate_key()to optionally accept parameters forrequests.Requestinstead of a request objectmatch_headersto optionally accept a list of specific headers to matchkey_fnparameterℹ️ 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.Requestinstead of just a URL📦 Dependencies:
appdirsas a dependency for easier cross-platform usage of user cache directoriescattrsfrom optional to required dependencyitsdangerousfrom required to optional (but recommended) dependencyrequests2.22+ andurllib31.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_errortostale_if_errorinclude_get_headerstomatch_headersbackends.sqlite.Db*->SQLiteCache,SQLiteDict,SQLitePickleDictcoremoduleBaseCache.remove_old_entries()method0.7.5 (2021-09-15)
redirects.sqlitewhen using filesystem backendredirects.sqlitewould get included in response paths with filesystem backend0.7.4 (2021-08-16)
Expiresheaders 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 theextensionparameter.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_keyattributeCachedResponsea non-slotted class to allow client code to set arbitrary attributes on it0.7.1 (2021-07-09)
v0.7.5Compare Source
redirects.sqlitewhen using filesystem backendredirects.sqlitewould get included in response paths with filesystem backendv0.7.4Compare Source
Expiresheaders not getting converted to UTCv0.7.3Compare 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 theextensionparameter.BaseCache.delete_urls()method to bulk delete multiple responses from the cache based onrequest URL
v0.7.2Compare Source
Response.next(to get the next request in a redirect chain) when 302 responses are cached directlyCachedResponse.cache_keyattributeCachedResponsea non-slotted class to allow client code to set arbitrary attributes on itv0.7.1Compare Source
v0.7.0Compare Source
See all issues and PRs for 0.7
🕗 Expiration & headers:
Cache-Control: max-ageCache-Control: no-cacheCache-Control: no-storeCache-Control: max-ageCache-Control: no-storeExpirescache_controloption toCachedSessionto enable setting expiration with cache headersexpire_afterparametersexpire_after=0💾 Backends:
DynamoDbDict.__iter__to return keys instead of valuesboto3.resourceCollection.find_and_modify()pymongo.MongoClientredis.Redisuse_tempoption to store files in a temp directorysqlite3.connect💾 Serialization:
cattrsultrajsonignored_parametersto also exclude ignored request params, body params, or headers from cached response data (to avoid storing API keys or other credentials)old_data_on_erroroption to also handle error response codesold_data_on_erroris 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, andBaseCacheBaseCache.urlsto only skip invalid responses, not delete them (for better performance)📦 Dependencies:
requestsversion of2.17attrsas a dependency for improved serialization modelscattrsas 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.17and2.18requests0.6.4 (2021-06-04)
filter_fn()would get called onresponse.requestinstead ofresponse0.6.3 (2021-04-21)
include_get_headersdecode_contentparameter forCachedResponse.raw.read()Collection.count()withestimated_document_count()0.6.2 (2021-04-14)
0.6.1 (2021-04-13)
BaseCache.urlsBaseCache.remove_old_entries()back, as an alias with a DeprecationWarningaws_access_key_idandaws_secret_access_keykwargs toDynamoDbDictGridFSPickleDict.__delitem__to raise a KeyError for missing itemslogging.infostatements to debug levelfind_packages()Configuration
📅 Schedule: (UTC)
🚦 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.