New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

requests-ntlm

Package Overview
Dependencies
Maintainers
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

requests-ntlm

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

  • 1.3.0
  • PyPI
  • Socket score

Maintainers
5

requests-ntlm

.. image:: https://github.com/requests/requests-ntlm/actions/workflows/ci.yml/badge.svg :target: https://github.com/requests/requests-ntlm/actions/workflows/ci.yml

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

Usage

HttpNtlmAuth extends requests AuthBase, so usage is simple:

.. code:: python

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.

.. code:: python

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

  • requests_
  • pyspnego_

.. _requests: https://github.com/kennethreitz/requests/ .. _pyspnego: https://github.com/jborean93/pyspnego/

Authors

  • Ben Toews_

.. _Ben Toews: https://github.com/mastahyeti

  • Ian Cordasco_

.. _Ian Cordasco: https://github.com/sigmavirus24

  • Cory Benfield_

.. _Cory Benfield: https://github.com/Lukasa

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc