skillfed

httpx-ntlm

This package allows for HTTP NTLM authentication using the HTTPX library.

httpx-ntlm v1.4.0 288.6K downloads/30d#8,020 on PyPI13
Permissive license ISC DORMANT released

What it is and what it does

httpx-ntlm is a thin authentication adapter that plugs NTLM support into the HTTPX HTTP client library. It wraps the NTLM negotiation logic from pyspnego and exposes it as an HTTPX Auth handler, so you can pass credentials to httpx.Client() or individual requests and have NTLM challenge-response handled automatically.

The package is most useful when you need to access corporate or legacy HTTP services that require Windows domain authentication. It supports connection pooling through HTTPX's Client, which is more efficient than per-request authentication since NTLM authenticates connections. The implementation is an adaptation of requests-ntlm for HTTPX.

Use it for:

  • Authenticate to corporate intranet services or SharePoint sites that require NTLM without leaving Python.
  • Build automated tools that need to fetch data from legacy Windows-authenticated HTTP APIs.
  • Reuse HTTPX's connection pooling while maintaining NTLM auth for enterprise environments.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Adds NTLM authentication support to HTTPX, enabling HTTP requests to servers that require Windows NTLM credentials.

Yes, if you need NTLM authentication with HTTPX and your environment is stable. The package has no known vulnerabilities and low install friction. However, dormant maintenance means you should verify that pyspnego remains compatible with your target authentication systems before committing to production use.

Install

httpx-ntlm on PyPI

pip

pip install httpx-ntlm

uv

uv add httpx-ntlm

poetry

poetry add httpx-ntlm

Installing httpx-ntlm

Before you install

Low install friction with only 2 runtime dependencies (httpx and pyspnego). Maintenance is dormant—last release was 2023-11-03, though the repository remains active.

License in practice

ISC license is permissive and places minimal restrictions on use, modification, or redistribution in commercial or private projects.

Quickstart

pip install httpx-ntlm

import httpx
from httpx_ntlm import HttpNtlmAuth

client = httpx.Client(auth=HttpNtlmAuth('domain\\username', 'password'))
response = client.get('http://ntlm_protected_site.com')

Verify before relying

  • Whether pyspnego's NTLM implementation remains compatible with current Windows/Active Directory authentication schemes.
  • Whether dormant maintenance status means the package will receive security updates if NTLM or httpx evolve.
  • Production readiness given the extended time since the last release.

Package facts

License ISC (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 2 — httpx, pyspnego
Maintenance dormant — 1,015 days since the last release
Last repo commit
First released
Downloads 288,559/month — #8,020 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: httpx_ntlm-1.4.0-py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: ISC License (ISCL)Programming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

ntlm authentication httpxhttp ntlm auth pythonwindows ntlm http clienthttpx auth ntlmntlm http requestsdomain authentication httpx
ntlmauthenticationenterprise

More WWW/HTTP packages