- Notifications
You must be signed in to change notification settings - Fork100
NTLM authentication support for Requests.
License
NotificationsYou must be signed in to change notification settings
requests/requests-ntlm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This package allows for HTTP NTLM authentication using the requests library.
HttpNtlmAuth
extends requestsAuthBase
, so usage is simple:
importrequestsfromrequests_ntlmimportHttpNtlmAuthrequests.get("http://ntlm_protected_site.com",auth=HttpNtlmAuth('domain\\username','password'))
HttpNtlmAuth
can be used in conjunction with aSession
in order tomake use of connection pooling. Since NTLM authenticates connections,this is more efficient. Otherwise, each request will go through a newNTLM challenge-response.
importrequestsfromrequests_ntlmimportHttpNtlmAuthsession=requests.Session()session.auth=HttpNtlmAuth('domain\\username','password')session.get('http://ntlm_protected_site.com')
pip install requests_ntlm
About
NTLM authentication support for Requests.
Resources
License
Stars
Watchers
Forks
Packages0
No packages published