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.2.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for requests_ntlm-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7781090c647308a88b55fb530c7b3705cef45349e70a83b8d6731e7889272a6 |
|
MD5 | ca45fe6441616a134f94787c42af38a1 |
|
BLAKE2b-256 | b60b84787a85a4aee9860a510747e9a0cffd08ebfa32d9c728b0db6306883ad1 |