Requests is an HTTP library, written in Python, for human beings. This library adds optional Magpie authentication support. Basic GET usage:
import requests
from requests_magpie import MagpieAuth
auth = MagpieAuth("https://www.example.com/magpie", "username", "password")
r = requests.get("https://www.example.com/protected", auth=auth)
The entire requests.api
should be supported.