Skip to content
New: Star-import, signal unraveling, Python 3.12 support, and more

# requests_ module

Utilities for requests.

## requests_retry_session function

    requests_retry_session(
        retries=3,
        backoff_factor=0.3,
        status_forcelist=(500, 502, 504),
        session=None
    )

Retry `retries` times if unsuccessful.

## text_to_giphy_url function

    text_to_giphy_url(
        text,
        api_key=None,
        weirdness=None
    )

Translate text to GIF.

See https://engineering.giphy.com/contextually-aware-search-giphy-gets-work-specific/

#### Cookie consent

We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.

- Google Analytics
- GitHub

Manage settings