This package allows for HTTP NTLM authentication using the requests library.
Project Links
Meta
Author: Ben Toews
Requires Python: >=3.8
Classifiers
Development Status
- 4 - Beta
Intended Audience
- Developers
Programming Language
- Python
- Python :: 3
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
License
- OSI Approved :: ISC License (ISCL)
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
1.3.0
Jun 09, 2024
1.2.0
Feb 15, 2023
1.1.0
Oct 18, 2017
1.0.0
Dec 07, 2016
0.3.0
May 06, 2016
0.2.0
Jul 20, 2015
0.1.0
Dec 23, 2014
0.0.3
Aug 25, 2014
0.0.2.4
Jun 06, 2014
0.0.2.3
Aug 28, 2013
0.0.2.2
May 31, 2013
0.0.2.1
Jan 07, 2013
0.0.2
Jan 07, 2013
0.0.1
Jan 07, 2013