Skip to main content

SAML/ECP authentication handler for python-requests

Project description

requests-ecp

A SAML/ECP authentication handler for python-requests.

Release status

PyPI version Conda version
DOI License Supported Python versions

Development status

Travis Circle Appveyor
Codecov Maintainability Documentation

Installation

See https://requests-ecp.readthedocs.io/en/latest/#installation for installation instructions.

Basic usage

Attach the HTTPECPAuth object to your Requests Session and the relevant authentication will happen whenever required.

>>> from requests import Session
>>> from requests_ecp import HTTPECPAuth
>>> with Session() as sess:
...     sess.auth = HTTPECPAuth("https://idp.university.ac.uk/idp/profile/SAML2/SOAP/ECP")
...     sess.get("https://data.university.ac.uk/mydata.dat")

Project details


Download files

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

Files for requests-ecp, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size requests_ecp-0.2.1-py3-none-any.whl (18.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size requests-ecp-0.2.1.tar.gz (20.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page