Skip to main content

A Magpie authentication handler for python-requests

Project description

requests Magpie authentication library

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.

History

0.2.0

  • Add parameter to provide extra request keyword arguments as needed for performing the authentication request.

  • Add parameter to cache result from authentication request to avoid performing the opeartion each time.

0.1.1

  • Initial Release

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page