skip to navigation
skip to content

Not Logged In

requests_ntlm 0.0.3

This package allows for HTTP NTLM authentication using the requests library.

Latest Version: 0.1.0

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)
session.get('http://ntlm_protected_site.com')

Installation

pip install requests_ntlm

Requirements

 
File Type Py Version Uploaded on Size
requests_ntlm-0.0.3.tar.gz (md5) Source 2014-08-25 3KB
  • Downloads (All Versions):
  • 143 downloads in the last day
  • 549 downloads in the last week
  • 2190 downloads in the last month