Watch
1
0
Fork
You've already forked httpx-ntlm
0
No description
  • Python 88.6%
  • PowerShell 11.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann ce18b6a80e
Updating to debhelper 14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-06-14 12:49:42 +02:00
debian Updating to debhelper 14. 2026-06-14 12:49:42 +02:00
docs Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
httpx_ntlm Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
tests Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
.gitignore Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
.travis.yml Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
DEPLOY.md Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
LICENSE Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
MANIFEST.in Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
README.rst Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
requirements.txt Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00
setup.py Adding upstream version 1.4.0. 2025-08-01 20:26:03 +02:00

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