Skip to main content

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.5.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

requests_custom-0.0.5-py3-none-any.whl (4.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page