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.2.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for httpx_ntlm-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c40e88000119250e47522d64d7cac5a1fd3b16f5104e9cae1fe89ea3d0c32e3 |
|
MD5 | 348254977f643bb35f0848682bf12e9d |
|
BLAKE2b-256 | f778178e2d0a6a0b022995b7f26874051303cc72f9d85613b0992a9a737bcddb |