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

Project details


Download files

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

Source Distribution

requests-magpie-0.2.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

requests_magpie-0.2.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

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