<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/requests-cache.git/requests_cache/__init__.py, branch dev</title>
<subtitle>github.com: reclosedev/requests-cache
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/'/>
<entry>
<title>Log any ImportErrors in top-level init file</title>
<updated>2021-04-23T01:55:23+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-04-23T01:51:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=752943b76052df936e33404c40688dc03633ee93'/>
<id>752943b76052df936e33404c40688dc03633ee93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update changelog, contributors, and version</title>
<updated>2021-04-21T15:51:40+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-04-21T15:51:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=15f9fb652b08e1e6a9cbb2515ebafe8f962afb4a'/>
<id>15f9fb652b08e1e6a9cbb2515ebafe8f962afb4a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Set up automatic pre-release builds from dev branch</title>
<updated>2021-04-17T17:09:52+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-04-17T17:03:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=ff5a9c3b64a0c34daedda3b00ed58520ce5abced'/>
<id>ff5a9c3b64a0c34daedda3b00ed58520ce5abced</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Explicitly include docs, tests, and examples in sdist</title>
<updated>2021-04-14T15:36:56+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-04-14T14:59:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=d34114a2baff04b1717b6ffe3779edb6e03b07d2'/>
<id>d34114a2baff04b1717b6ffe3779edb6e03b07d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove shebang from top-level init file</title>
<updated>2021-04-12T02:14:48+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-04-12T02:14:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=bf2cc432261394a2134c0fe889f28085e9679771'/>
<id>bf2cc432261394a2134c0fe889f28085e9679771</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle errors due to invalid responses in `BaseCache.urls`</title>
<updated>2021-04-11T00:33:01+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-04-11T00:06:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=82076f063b66099df0ed24a260041b921656fb37'/>
<id>82076f063b66099df0ed24a260041b921656fb37</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Split 'core' module into 'session' and 'patcher' modules; keep placeholder 'core' module for backwards-compatibility</title>
<updated>2021-04-02T19:20:46+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-04-02T16:28:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=9822e3f55c40372c44ae4d8752e99e60ab88cbd4'/>
<id>9822e3f55c40372c44ae4d8752e99e60ab88cbd4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove some redundant module docstrings, and fix some ref links</title>
<updated>2021-03-30T03:39:48+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-03-30T02:58:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=9698e48ea19e013ef5c1f3cce41dc558d2bbd69d'/>
<id>9698e48ea19e013ef5c1f3cce41dc558d2bbd69d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Consolidate expiration, pre-serializiation, and other response object logic into CachedResponse class:</title>
<updated>2021-03-22T18:39:55+00:00</updated>
<author>
<name>Jordan Cook</name>
<email>jordan.cook@pioneer.com</email>
</author>
<published>2021-03-18T22:20:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=aa9579ddf3108f795767f341258395aa10ee8f45'/>
<id>aa9579ddf3108f795767f341258395aa10ee8f45</id>
<content type='text'>
* Replace `_RawStore`  with `CachedHTTPResponse` class to wrap raw responses
    * Maintain support for streaming requests (#68)
    * Improve handling for generator usage
    * Add support for use with `pandas.read_csv()` and similar readers (#148)
    * Add support for use as a context manager (#148)
    * Add support for `decode_content` arg
* Fix streaming requests when used with memory backend (#188)
* Verified that `PreparedRequest.body` is always encoded in utf-8, so no need to detect encoding (Re: TODO note)
* Response creation time and expiration time are stored as CachedResponse, so the `(response, timestamp)` tuple is no longer necessary
* Rename `response.expire_after` and `response.cache_date` to `expires` and `created_at`, respectively, based on browser cache directives
* Add optional `expire_after` param to `CachedSession.remove_old_responses()`
* Make `CachedSession` members `allowable_codes, allowable_methods, filter_fn, old_data_on_error`
  public, since they can safely be modified after initialization
* More type annotations and docstring updates
* Move main cache documentation from `CacheMixin` to CachedSession`, since that's probably where a user would look first
* Wrap temporary `_request_expire_after` in a contextmanager
* Add intersphinx links for `urllib` classes &amp; methods
* Fix linting issues raised by flake8
* Start adding some unit tests using requests-mock

tmp
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Replace `_RawStore`  with `CachedHTTPResponse` class to wrap raw responses
    * Maintain support for streaming requests (#68)
    * Improve handling for generator usage
    * Add support for use with `pandas.read_csv()` and similar readers (#148)
    * Add support for use as a context manager (#148)
    * Add support for `decode_content` arg
* Fix streaming requests when used with memory backend (#188)
* Verified that `PreparedRequest.body` is always encoded in utf-8, so no need to detect encoding (Re: TODO note)
* Response creation time and expiration time are stored as CachedResponse, so the `(response, timestamp)` tuple is no longer necessary
* Rename `response.expire_after` and `response.cache_date` to `expires` and `created_at`, respectively, based on browser cache directives
* Add optional `expire_after` param to `CachedSession.remove_old_responses()`
* Make `CachedSession` members `allowable_codes, allowable_methods, filter_fn, old_data_on_error`
  public, since they can safely be modified after initialization
* More type annotations and docstring updates
* Move main cache documentation from `CacheMixin` to CachedSession`, since that's probably where a user would look first
* Wrap temporary `_request_expire_after` in a contextmanager
* Add intersphinx links for `urllib` classes &amp; methods
* Fix linting issues raised by flake8
* Start adding some unit tests using requests-mock

tmp
</pre>
</div>
</content>
</entry>
<entry>
<title>Add individual expire_after per request. (#177)</title>
<updated>2021-03-06T00:29:06+00:00</updated>
<author>
<name>Sebastian Höffner</name>
<email>info@sebastian-hoeffner.de</email>
</author>
<published>2021-03-06T00:29:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/requests-cache.git/commit/?id=7632de7c457bebf26b7503c8f7be3693b179b077'/>
<id>7632de7c457bebf26b7503c8f7be3693b179b077</id>
<content type='text'>
* Add individual expire_after per request.

This commit adds a new feature to allow individual expire_after times
per request.
It involves using a custom CachedSession, PerRequestCachedSession,
to be used as the session_factory.

* Replace deprecated asserts in unit tests

Additionally, some sockets are closed even on test failures.
This removes some visual clutter when going through the results.

* Update docs and README for per-request caching

* Remove per_request and integrate behavior into CachedSession

* Make test_return_old_data_on_error more reliable

This is achieved by using a fixed date and mocking the backend calls to datetime as well.

* Adjust per_request cache to new behavior

Also adds HTTPBIN_URL environment variable as in test_cache

* Add tests for the function determining the expiration datetime

* Adjust backend to store expiration dates

This also involves slightly different semantics for deletion, but the behavior stays the same.

* Minor: black and isort

* Update docs for request

Add explanation for expire_after special cases, i.e. 'default' and 'cached' and how precedences are handled

* Replace assert statements with methods

* Remove invalid snippet from README

* Remove invalid sentence from docs.

* Make expires_before timezone-aware once

And combine the checks for expiration

* Simplify complexity by removing 'cached' keyword for expire_after</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add individual expire_after per request.

This commit adds a new feature to allow individual expire_after times
per request.
It involves using a custom CachedSession, PerRequestCachedSession,
to be used as the session_factory.

* Replace deprecated asserts in unit tests

Additionally, some sockets are closed even on test failures.
This removes some visual clutter when going through the results.

* Update docs and README for per-request caching

* Remove per_request and integrate behavior into CachedSession

* Make test_return_old_data_on_error more reliable

This is achieved by using a fixed date and mocking the backend calls to datetime as well.

* Adjust per_request cache to new behavior

Also adds HTTPBIN_URL environment variable as in test_cache

* Add tests for the function determining the expiration datetime

* Adjust backend to store expiration dates

This also involves slightly different semantics for deletion, but the behavior stays the same.

* Minor: black and isort

* Update docs for request

Add explanation for expire_after special cases, i.e. 'default' and 'cached' and how precedences are handled

* Replace assert statements with methods

* Remove invalid snippet from README

* Remove invalid sentence from docs.

* Make expires_before timezone-aware once

And combine the checks for expiration

* Simplify complexity by removing 'cached' keyword for expire_after</pre>
</div>
</content>
</entry>
</feed>
