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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for requests_ntlm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3b8f215abb3f151e08855f16241dbb90626d121e2cecaf7002c75bdc5e9a0626
MD5 370688e60b5f51142c64adad027a29a2
BLAKE2b-256 fd7e49ac64a0a784d4ac5e3667a6224b45e0d7de881a40ab919ef18f19195801

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