Skip to content

Ouranosinc/requests-magpie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.