Requests TransportAdapter for foauth.org!
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.rst
requests_foauth.py
setup.py

README.rst

requests-foauth

This module provides an foauth.org TransportAdapter for Requests.

In short, foauth.org allows you to easily send requests to OAUth'd services with HTTP Basic authentication. It's fantastic.

Normally, you have to send all requests to foauth.org manually, after rewriting the URLs. With this adapter, all requests are sent through the service transparently.

Example usage

import requests
from requests_foauth import Foauth

s = requests.Session()
s.mount('https://', Foauth('username', 'password))

>>> s.get('https://api.500px.com/v1/users/')
<Response [200]>