Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/requests/requests-ntlm
NTLM authentication support for Requests.
https://github.com/requests/requests-ntlm
Last synced: 7 days ago
JSON representation
NTLM authentication support for Requests.
- Host: GitHub
- URL: https://github.com/requests/requests-ntlm
- Owner: requests
- License: other
- Created: 2012-11-15T14:26:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T07:43:00.000Z (about 1 year ago)
- Last Synced: 2024-05-30T00:12:31.159Z (7 months ago)
- Language: Python
- Size: 114 KB
- Stars: 331
- Watchers: 20
- Forks: 99
- Open Issues: 24
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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.ymlThis 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 HttpNtlmAuthrequests.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 HttpNtlmAuthsession = 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