Skip to content

bennybauer/resilient-requests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

resilient-requests

The goal of this library is to implement a resilient version of the requests library.

This library will support:

  1. Timeouts (already supported by requests)
  2. Retry (via HttpAdapter, using urllib3 Retry class)

Usage

Eventually the interface should be something like this:

requests.get(url, timeout=(connect_seconds, read_seconds), retry=(total, backoff_factor, status_forcelist))

For example:

requests.get('https://example.com/posts', timeout=(2, 1), retry=(3, 0.1, [500, 501]))

Releases

No releases published

Packages

No packages published

Languages