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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

requests_ntlm-0.3.0-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for requests_ntlm-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e1b3313989225055c53f3a62c893d87d3b30f7d66c86b1ade3f51da40817f280
MD5 7913d709909e245d9b954518cd103d11
BLAKE2b-256 00ef51ca44ab38d00818ee1f812e5a8226766ad034457023daa82a39e95709ff

See more details on using hashes here.

File details

Details for the file requests_ntlm-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for requests_ntlm-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7849c61df6c332f4ba71fc812d31795a5b2996c2879818e4b4df0f9f750c0661
MD5 25ccbd95bd947f9f1d060fe017105aff
BLAKE2b-256 ecc2f232e64568c299d25c9f80ec8327d8ff6581ccc116c8846f17fc5a5f9205

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