Transport adapter for requests to handle Pomerium authentication
Project description
pomerium_http_adapter
Transport adapter for requests to handle Pomerium authentication
Introduction
This Python module acts as a "transport adapter" for the popular "requests" library. It enables transparent Pomerium authentication (in a similar fashion as "pomerium-cli") of HTTPS requests.
Current status
The module is still in early development and lacks things such as a test suite and documentation. Contributions are welcome!
Example usage
import requests
import pomerium_http_adapter
session = requests.Session()
adapter = pomerium_http_adapter.PomeriumHTTPAdapter(
authenticated_domains=['example.com'])
session.mount('https://', adapter)
for user in session.get('https://api.example.com/v2/users').json():
print('=> %s' % user['name'])
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
Close
Hashes for pomerium_http_adapter-0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f44876e22a115cb36c9ae32aa0db4a7a56a7ec2bd8283c25028c312b469f9fd |
|
MD5 | ce230fb4064d698232349d9dcc616f7b |
|
BLAKE2b-256 | 26b4c0c8d41042dc9e63c6bda805a4710a13f7dc109b3a7e1fa12bf38e17a9e5 |