Skip to main content

This package allows for HTTP NTLM authentication using the HTTPX library. Fork of httpx_ntlm with fixes.

Project description

This package allows for HTTP NTLM authentication using the HTTPX library. It is an adaptation of https://github.com/requests/requests-ntlm.

Usage

HttpNtlmAuth extends HTTPX Auth base class, so usage is simple:

import httpx
from httpx_ntlm import HttpNtlmAuth

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

HttpNtlmAuth can be used in conjunction with a Client 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 httpx
from httpx_ntlm import HttpNtlmAuth

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

Installation

pip install httpx-ntlm-fixed

Requirements

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

httpx_ntlm_fixed-1.4.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

httpx_ntlm_fixed-1.4.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file httpx_ntlm_fixed-1.4.1.tar.gz.

File metadata

  • Download URL: httpx_ntlm_fixed-1.4.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for httpx_ntlm_fixed-1.4.1.tar.gz
Algorithm Hash digest
SHA256 bbfdb1ce614fb2424a4b1864fdcf66631466ba66ba80d96b8b75b88d061be945
MD5 b2eea5979382580e3fbabb2ff1de15f6
BLAKE2b-256 68f78a2b539801d29f30d0bfa8dad888e3a16ca5d183aa33b8ce5b83f9274f4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx_ntlm_fixed-1.4.1.tar.gz:

Publisher: pypi.yml on LogicDaemon/httpx-ntlm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file httpx_ntlm_fixed-1.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for httpx_ntlm_fixed-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04b400987909e31ce26f44150462aa108067a638b2ada4ff4138de0b5d8becdc
MD5 f9523c245ad60b3e259befd563609878
BLAKE2b-256 e933f7b915d4bbfc50b4b7dabe54cb7839947639256d8774dc2304913d0d6b47

See more details on using hashes here.

Provenance

The following attestation bundles were made for httpx_ntlm_fixed-1.4.1-py3-none-any.whl:

Publisher: pypi.yml on LogicDaemon/httpx-ntlm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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