Skip to main content

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

Installation

pip install requests_ntlm

Requirements

Authors

Project details


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-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file requests_ntlm-0.1.0.tar.gz.

File metadata

  • Download URL: requests_ntlm-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for requests_ntlm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5282251f5e7859a3877491fd98b4da7e3418c554f07d055d7849c0aaf9dc6210
MD5 9c3e838d05e3fc789ff4d2269e39930f
BLAKE2b-256 a8adb8af60e0ce7af61cf5793e9490d9b4a146c8151e50890fa19eb8575eef05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page