Socket
Socket
Sign inDemoInstall

httpx-ntlm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpx-ntlm

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


Maintainers
1

httpx-ntlm

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:

.. code:: python

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.

.. code:: python

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

Requirements

  • httpx_
  • pyspnego_

.. _httpx: https://github.com/encode/httpx .. _pyspnego: https://github.com/jborean93/pyspnego

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc