This package allows for HTTP NTLM authentication using the HTTPX library.
Project description
This package allows for HTTP NTLM authentication using the HTTPX library. It is an adaptation of https://github.com/requests/requests-ntlm.
Usage
HttpNtlmAuth extends HTTPX Auth base class, so usage is simple:
import httpx
from httpx_ntlm import HttpNtlmAuth
httpx.get("http://ntlm_protected_site.com",auth=HttpNtlmAuth('domain\\username','password'))
HttpNtlmAuth can be used in conjunction with a Client in order to make use of connection pooling. Since NTLM authenticates connections, this is more efficient. Otherwise, each request will go through a new NTLM challenge-response.
import httpx
from httpx_ntlm import HttpNtlmAuth
client = httpx.Client(auth=HttpNtlmAuth('domain\\username','password'))
client.get('http://ntlm_protected_site.com')
Installation
pip install httpx-ntlm
Requirements
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_ntlm-1.4.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file httpx_ntlm-1.4.0.tar.gz
.
File metadata
- Download URL: httpx_ntlm-1.4.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41be8a2ba85143484e617dcb917d4b19e3ae12afdc688622a4901034993b53e4 |
|
MD5 | 7e870851af871cc91a748138c1de13a7 |
|
BLAKE2b-256 | ba9cfee5d1a348ac85fe7c4c38a431edb007c0469c1f0170a2643eeba41a463d |
File details
Details for the file httpx_ntlm-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: httpx_ntlm-1.4.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8adc6715c787b1621121165baff450441be050fabfc1cb0c7095d0eb074f976d |
|
MD5 | 37b6b51411ab7e4123d897675217310f |
|
BLAKE2b-256 | 46ce4032cfef13e7728fe978a01d3417619ab19e5a679e8d60a543d1ad1e9a10 |