Skip to main content
https://github.com/requests/requests-ntlm/actions/workflows/ci.yml/badge.svg

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

Metadata

Release files for requests-ntlm 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for requests-ntlm 1.3.0
File Size Uploaded
requests_ntlm-1.3.0.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for requests-ntlm 1.3.0
File Interpreter ABI Platform
requests_ntlm-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / requests_ntlm-1.3.0.tar.gz

Download URL requests_ntlm-1.3.0.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b29cc2462623dffdf9b88c43e180ccb735b4007228a542220e882c58ae56c668
BLAKE2b-256 checksum
How to use checksums
15745d4e1815107e9d78c44c3ad04740b00efd1189e5a9ec11e5275b60864e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / requests_ntlm-1.3.0-py3-none-any.whl

Download URL requests_ntlm-1.3.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c7534a7d0e482bb0928531d621be4b2c74ace437e88c5a357ceb7452d25a510
BLAKE2b-256 checksum
How to use checksums
9e5d836b97537a390cf811b0488490c389c5a614f0a93acb23f347bd37a2d914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2.3

1 release file

0.0.2.2

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page