This package allows for HTTP NTLM authentication using the requests library.
Project description
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
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
requests_ntlm-1.3.0.tar.gz
(16.1 kB
view details)
Built Distribution
File details
Details for the file requests_ntlm-1.3.0.tar.gz
.
File metadata
- Download URL: requests_ntlm-1.3.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29cc2462623dffdf9b88c43e180ccb735b4007228a542220e882c58ae56c668 |
|
MD5 | 430f303715400e2274c579b7095a2116 |
|
BLAKE2b-256 | 15745d4e1815107e9d78c44c3ad04740b00efd1189e5a9ec11e5275b60864e54 |
File details
Details for the file requests_ntlm-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: requests_ntlm-1.3.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7534a7d0e482bb0928531d621be4b2c74ace437e88c5a357ceb7452d25a510 |
|
MD5 | fbb08fbdf099fdbcb4722d16f0dda6cd |
|
BLAKE2b-256 | 9e5d836b97537a390cf811b0488490c389c5a614f0a93acb23f347bd37a2d914 |