Skip to main content

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

Project description

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

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

requests_ntlm-1.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

requests_ntlm-1.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file requests_ntlm-1.2.0.tar.gz.

File metadata

  • Download URL: requests_ntlm-1.2.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for requests_ntlm-1.2.0.tar.gz
Algorithm Hash digest
SHA256 33c285f5074e317cbdd338d199afa46a7c01132e5c111d36bd415534e9b916a8
MD5 f02e1ddd9b86de2ccdbe28900190ab85
BLAKE2b-256 7aad486a6ca1879cf1bb181e3e4af4d816d23ec538a220ef75ca925ccb7dd31d

See more details on using hashes here.

File details

Details for the file requests_ntlm-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: requests_ntlm-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for requests_ntlm-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7781090c647308a88b55fb530c7b3705cef45349e70a83b8d6731e7889272a6
MD5 ca45fe6441616a134f94787c42af38a1
BLAKE2b-256 b60b84787a85a4aee9860a510747e9a0cffd08ebfa32d9c728b0db6306883ad1

See more details on using hashes here.

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