READ ME
Dogbutler is a client library base on requests but with a cache and persistent cookie support.
INSTALLATION
>>> pip install dogbutler
USAGE
DogButler supports GET, HEAD, POST, PATCH, PUT, DELETE, and OPTIONS requests.
>>> import dogbutler
>>> r = dogbutler.get('http://www.google.com', headers={'a': 'antelope'}, cookies={'a': 'apple'})
>>> r.status_code
200
>>> r.content
Sessions
A session has its own cache, cookie jar, and redirect history.
>>> from dogbutler import Session
>>> s = Session()
>>> r = s.get('http://www.google.com', headers={'a': 'antelope'}, cookies={'a': 'apple'})
>>> r.status_code
200
>>> r.content
Async
Note: Only GET requests can be called asynchronously at the moment.
Each request is a tuple of (url, kwargs), where kwargs can contain optional arguments such as headers and cookies.
>>> from dogbutler import async
>>> request1 = ('http://www.google.com', {'headers': {'a': 'antelope'}, 'cookies': {'a': 'apple'}})
>>> request2 = ('http://www.apple.com', {'headers': {'b': 'bear'}, 'cookies': {'b': 'banana'}})
>>> response1, response2 = async.get([request1, request2])
>>> response1.status_code
200
>>> response2.status_code
200
CHANGE LOG
Version 0.0.4
Ignore cache if no-cache is defined in request header.
Fix minor bugs.
Version 0.0.3
Support Sessions.
Not cache hop-by-hop headers.
Version 0.0.2
Set default cache, cookie cache, and redirect cache backends.
Disable cache, cookie cache, and redirect cache by setting each to None.
Version 0.0.1
Initial release.
Metadata
Release files for dogbutler 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dogbutler-0.0.4.tar.gz | 19.3 kB | Without provenance | Details for dogbutler-0.0.4.tar.gz |
Release files / dogbutler-0.0.4.tar.gz
| Download URL | dogbutler-0.0.4.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0920f93cd592dd50a5153cc4d09f03794b4ff581ae0780fe6d82ec2fa7350d9c
|
|
BLAKE2b-256 checksum How to use checksums |
cab0632b77c04686771b8291935607aa8ca97435e082b54a364c30221e444cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dogbutler 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.