/
View dependency graph
Depends on
- dh-python (dh-sequence-python3)
- python3-defaults (python3-all)
- setuptools (python3-setuptools)
- debhelper-compat
README (full)
httpx-ntlm
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
| dir | debian/ |
| dir | docs/ |
| dir | httpx_ntlm/ |
| dir | tests/ |
| file | .gitignore |
| file | .travis.yml |
| file | DEPLOY.md |
| file | LICENSE |
| file | MANIFEST.in |
| file | README.rst |
| file | requirements.txt |
| file | setup.py |