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 Provenance
requests_ntlm-1.3.0.tar.gz 16.1 kB Without provenance 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

Security for requests-ntlm 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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