Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

NTLM authentication support for Requests.

License

Notifications You must be signed in to change notification settings

vmware-archive/requests-ntlm

 
 

Repository files navigation

requests-ntlm

https://travis-ci.org/requests/requests-ntlm.svg?branch=master https://coveralls.io/repos/github/requests/requests-ntlm/badge.svg?branch=master

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

Authors

About

NTLM authentication support for Requests.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.9%
  • PowerShell 8.1%