Python's requests with custom configuration
Project description
Package to work with custom requests capabilities.
Current capabilities available:
- Custom timeout for all requests.
- Raise exception with certain HTTP status code responses.
- Retry on failure.
Installation
pip install requests_custom
Pypi link: https://pypi.org/project/requests-custom/
How to use
from requests_custom import requests_custom
requests = requests_custom.RequestsCustom(debug_full=True).get_requests()
requests.get('https://duckduckgo.com')
Documentation
https://requests-custom.readthedocs.io/en/latest/
At the previous link you can see the references of this project.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
requests_custom-0.0.6.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file requests_custom-0.0.6.tar.gz
.
File metadata
- Download URL: requests_custom-0.0.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d77500a34ca2f96b20c646a9343f812ddb2d2407091004c3054774b4559a498f |
|
MD5 | 92b90222fd62b15991ef4f0612b8b449 |
|
BLAKE2b-256 | 4ceedfc2ac1c5842e5d0d506764fab781be66b8d824764c1d8a30273a10b9733 |
File details
Details for the file requests_custom-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: requests_custom-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd5b859593ce5c627481d623a2c6f4953602b348611c96c224502d37d52f6cfb |
|
MD5 | 67e53bedb18b3b5b475e0a80c3a62dc7 |
|
BLAKE2b-256 | 484b321bf19f5350fa238c5b5ac4b4e8741952d6d0b2d3c1c2e70c8bb5264a51 |