Addon which activates PKCS12 certificates usage with HTTPX client.
Project description
httpx-pkcs12
Addon which activates PKCS12 certificates usage with HTTPX client.
Usage
with open('path/to/your/cert', 'rb') as f:
cert_contents = f.read()
password = 'your-secret-password'
context = create_ssl_context(cert_contents, password)
# async version
async with httpx.AsyncClient(verify=context) as client:
response = ...
# or sync version
response = httpx.get(..., verify=context)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpx_pkcs12-1.0.3.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file httpx_pkcs12-1.0.3.tar.gz
.
File metadata
- Download URL: httpx_pkcs12-1.0.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a82f0bf053ec28f6d3ead74420ade4b331cb0f1e2381e938ce832324311abf3c |
|
MD5 | 0363945ab1d3a19ff3960dfd75ca543b |
|
BLAKE2b-256 | f3005ae603799f220114ac0798916cafdfde2e52292648f7d147410fd29118a0 |
File details
Details for the file httpx_pkcs12-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: httpx_pkcs12-1.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b30fae33d14172e0ee927b3456fe3aadcbc6602b4db7d2e1f45715d2e79a72a |
|
MD5 | 2dd6fa6eda7a3b277ed91ccf84095476 |
|
BLAKE2b-256 | 493f92f8d21b90fc61771ed53d14aaa2014d628e7178ceedaff6f10e5d890dd8 |