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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a937c49e9fa9eb62284bac9d48ff10a6549cbce338a993560110446d6cedc03 |
|
MD5 | 3631c6788e5d8732e661673eca287790 |
|
BLAKE2b-256 | a53d8bc7923b8743b884b93bef9a26fdc610ca56712a99630c3e6d8c062fb2f4 |