Skip to main content

Library for maintaining tracked requests sessions

Project description


All right! I'm a delivery boy!

Image of Fry


Fry is an extension of the python requests library built to better manage service-level http interactions.

  • Manages dependency settings within the Session object, lessening the amount of overhead boilerplate code
    • Dependency settings include retry count and timeout; split per host
  • Given a statsd object, will also record and report stats per request; split per endpoint

StatsD libraries currently supported:

  • datadog


import fry

adapter_settings = {
    '': {
        'retry': {
            'total': 3,
            'read': 3
        'adapter': {
            'pool_maxsize': 4,
        'adapter_config': {
            'timeout': 0.5

fsession = fry.FrySession(stats_client=DogStatsd('example'), adapter_settings=adapter_settings)

signature = 'hostname.endpoint'
request_params = {'test': 'value'}

response = fsession.make_request('GET', '', signature, params=request_params)


Update the version when updating the library in: fry/

Build the library locally: python sdist

Change Log


  • Support for datadog statsd api

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fry, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size fry-0.2.0.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

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