summaryrefslogtreecommitdiff
path: root/requests_cache
Commit message (Collapse)AuthorAgeFilesLines
* Build pre-releases from 'pre-release' branch, and set version suffix in CI ↵pre-releaseJordan Cook2021-04-291-15/+1
| | | | config
* Minor formatting changes for SQL queriesJordan Cook2021-04-291-20/+24
|
* Some more improvements for bulk deletes in SQLite backendJordan Cook2021-04-291-10/+32
|
* Improve performance a bit for remove_expired_responses()Jordan Cook2021-04-292-23/+31
|
* Show datetimes in local timezone for str(CachedResponse)Jordan Cook2021-04-291-3/+8
|
* Add response details to CachedResponse str() and repr()Jordan Cook2021-04-291-0/+36
|
* Add BaseCache.keys() and values() methodsJordan Cook2021-04-272-18/+45
| | | | | * Update `BaseCache.urls` to return a generator instead of the whole list at once (which may use too much memory for particularly large caches) * Update `BaseCache.urls` to just skip invalid responses instead of deleting them
* Bump black versionJordan Cook2021-04-261-1/+0
|
* Include this behavior in old_data_on_error instead, to avoid complicationsJordan Cook2021-04-232-7/+1
|
* Add raise_for_status optionJordan Cook2021-04-232-2/+11
|
* Log any ImportErrors in top-level init filedevJordan Cook2021-04-221-4/+7
|
* Add use_temp option to SQLite backendJordan Cook2021-04-222-8/+21
| | | | Closes #243
* Move storage class __str__ methods to base class, and just show keys instead ↵Jordan Cook2021-04-226-15/+3
| | | | of items
* Store responses for filesystem backend in a 'responses' subdirectory, to ↵Jordan Cook2021-04-221-5/+7
| | | | avoid deleting redirects.sqlite with clear()
* For SQLite and filesystem backends, resolve file paths in BaseStorage class ↵Jordan Cook2021-04-212-8/+6
| | | | rather than BaseCache class
* Update changelog, contributors, and versionJordan Cook2021-04-211-1/+1
|
* Add a filesystem backendJordan Cook2021-04-213-1/+93
|
* Use shared connection to create initial SQLite tableJordan Cook2021-04-211-1/+1
|
* Merge pull request #240 from jsemric/use-thread-local-connections-for-sqliteJordan Cook2021-04-211-41/+21
|\ | | | | Use thread local connections for sqlite
| * remove locking of sqlite connectionjsemric2021-04-211-18/+10
| |
| * do not lock connection on readjsemric2021-04-211-4/+10
| |
| * make bulk commit use thread-local connectionjsemric2021-04-211-26/+7
| |
| * use thread local sqlite connectionsjsemric2021-04-201-16/+17
| |
* | Fix DynamoDbDict.__iter__ to return keys instead of values; update tests to ↵Jordan Cook2021-04-201-1/+1
|/ | | | test for this
* Allow passing any valid backend connection kwargs via BaseCacheJordan Cook2021-04-198-103/+109
| | | | | | | | * Pass `**kwargs` to backend storage classes, split out any that are valid for the backend-specific connection function/class, and pass them to the connection * Add intersphinx links to docs for dependencies * Update and format some more backend class docstrings * Remove 'Unrecognized keyword arguments' warning from `BaseStorage` * Turn `warnings.warn` about using secret keys into a `logging.warning` (due to complaints about too many messages)
* Add option to manually cache response objectsJordan Cook2021-04-192-2/+3
| | | | Updates #98
* Replace deprecated pymongo Collection.count() with estimated_document_count()v0.6.3Jordan Cook2021-04-192-2/+2
|
* Don't show warnings for 'include_get_headers' and 'ignored_parameters' ↵Jordan Cook2021-04-182-8/+17
| | | | | | | kwargs in BaseStorage Also don't name them as private members, since they can safely by changed after initialization (e.g., `session.cache.include_get_headers = True`)
* Read manually instead of using _body, move decode tests to integration testsshiftinv2021-04-181-5/+5
|
* Improve raw response reset, update testsshiftinv2021-04-181-28/+18
|
* Fix handling of decode_content parameter for raw.read(...)shiftinv2021-04-181-10/+29
|
* Set up automatic pre-release builds from dev branchJordan Cook2021-04-171-1/+19
|
* Add warning about cache_disabled() not being thread-safe, and use a lock for ↵Jordan Cook2021-04-171-5/+14
| | | | request_expire_after()
* Explicitly include docs, tests, and examples in sdistv0.6.2Jordan Cook2021-04-141-1/+1
|
* Update GridFSPickleDict.__delitem__ to raise a KeyError for missing itemsJordan Cook2021-04-121-4/+8
|
* Add kwargs for AWS creds for DynamoDbDictJordan Cook2021-04-121-1/+11
|
* Update all backend-specific integration tests to fail quickly if not set up, ↵Jordan Cook2021-04-121-11/+11
| | | | rarther than silently ignoring or hanging
* Remove shebang from top-level init fileJordan Cook2021-04-111-1/+0
|
* Make parent dirs for new SQLite databasesJordan Cook2021-04-111-8/+18
|
* Demote most logging.info statements to debugJordan Cook2021-04-105-9/+9
|
* Handle errors due to invalid responses in `BaseCache.urls`Jordan Cook2021-04-102-15/+19
|
* Add remove_old_entries() back to BaseCache as an alias with a DeprecationWarningJordan Cook2021-04-101-0/+5
|
* Improvements to Sphinx documentation:Jordan Cook2021-04-036-59/+61
| | | | | | | | | | | | | | * Use sphinx-apidoc to auto-generate sources for backend modules * Still manually adding other modules for more control over formatting * Add a couple more contributors I missed * Include contributors on readthedocs * Add 'all' Makefile target and clean auto-generated docs * Remove unused build targets in Makefile * Update interpshinx links that have moved * Fix some interpshinx links * Fix some `:ref:` links using auto-generated labels (and some manually added labels where convenient) * Fix some docstring formatting * Fix remaining build warnings
* Add example script to convert an existing cache from previous serialization ↵Jordan Cook2021-04-031-1/+2
| | | | format to new one
* Split 'core' module into 'session' and 'patcher' modules; keep placeholder ↵Jordan Cook2021-04-024-385/+402
| | | | 'core' module for backwards-compatibility
* Improve backend initialization:Jordan Cook2021-04-023-80/+89
| | | | | | | * Also allow passing a backend class (in addition to backend name and instance) * Detect duplicate params: Backends have different keyword args equivalent to the `cache_name` positional arg, for example `db_name`. If one of these is passed as a keyword arg, it results in a `TypeError` due to duplicate args (See #94). * For backends without dependencies installed, use a placeholder class to delay and re-raise the original `ImportError` * Add type annotations
* Add 'verify' param to cache keyJordan Cook2021-04-013-6/+8
| | | | Closes #209
* Avoid recursion when caching redirectsJordan Cook2021-03-311-3/+4
|
* Rename 'add_key_mapping' to 'save_redirect' and take a request instead of a ↵Jordan Cook2021-03-313-13/+14
| | | | cache key
* Fix BaseCache.urls to return only response URLs (no redirect keys)Jordan Cook2021-03-301-1/+1
|