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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file requests-magpie-0.2.0.tar.gz.

File metadata

  • Download URL: requests-magpie-0.2.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.7

File hashes

Hashes for requests-magpie-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c4260f3bc7112d8d98259af1785cbf870faf70c1c1a2c0c040e21506b92fede1
MD5 efeb360a7d2c2b2fd375e3afa92888d7
BLAKE2b-256 874f5352f487846d930b85dac57030aa74216cad45e93ab8da13a2652482d02b

See more details on using hashes here.

Provenance

File details

Details for the file requests_magpie-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for requests_magpie-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9de070a5798dc331afbb68f8ac13949a25e404443b0b246272928fc4c1cb3399
MD5 e15e859ce12d14e26feaab547708da8d
BLAKE2b-256 fc4ea535cf2c64b899a550d5fbded94340340925da5683e90a4a140702832f11

See more details on using hashes here.

Provenance

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