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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for requests_ntlm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6cbffc10cb8c748f8141cd01220e3846980a8b448894d1ad9752834ace641866
MD5 d0d477ea8c36927a05541b65f1f1107b
BLAKE2b-256 d95db3ea1320c0f756aa5e8f7ce2a71bf17b0fbfbd1f41d73520b87f82172654

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