This package allows for HTTP NTLM authentication using the requests library.
Usage
HttpNtlmAuth extends requests AuthBase, so usage is simple:
import requests
from requests_ntlm import HttpNtlmAuth
requests.get("http://ntlm_protected_site.com",auth=HttpNtlmAuth('domain\\username','password'))
HttpNtlmAuth can be used in conjunction with a Session 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 requests
from requests_ntlm import HttpNtlmAuth
session = requests.Session()
session.auth = HttpNtlmAuth('domain\\username','password')
session.get('http://ntlm_protected_site.com')
Installation
pip install requests_ntlm
Requirements
Metadata
Release files for requests-ntlm 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| requests_ntlm-1.3.0.tar.gz | 16.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requests_ntlm-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.7 kB
Release files / requests_ntlm-1.3.0.tar.gz
| Download URL | requests_ntlm-1.3.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b29cc2462623dffdf9b88c43e180ccb735b4007228a542220e882c58ae56c668
|
|
BLAKE2b-256 checksum How to use checksums |
15745d4e1815107e9d78c44c3ad04740b00efd1189e5a9ec11e5275b60864e54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.4
|
Release files / requests_ntlm-1.3.0-py3-none-any.whl
| Download URL | requests_ntlm-1.3.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c7534a7d0e482bb0928531d621be4b2c74ace437e88c5a357ceb7452d25a510
|
|
BLAKE2b-256 checksum How to use checksums |
9e5d836b97537a390cf811b0488490c389c5a614f0a93acb23f347bd37a2d914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.4
|