httpx-ntlm-1.4.0
توضیحات
This package allows for HTTP NTLM authentication using the HTTPX library.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | httpx-ntlm-1.4.0 |
| نام | httpx-ntlm |
| نسخه کتابخانه | 1.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ludovic VAUGEOIS |
| ایمیل نویسنده | ulodciv@gmail.com |
| آدرس صفحه اصلی | https://github.com/ulodciv/httpx-ntlm |
| آدرس اینترنتی | https://pypi.org/project/httpx-ntlm/ |
| مجوز | ISC |
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
نیازمندی
| مقدار | نام |
|---|---|
| =0.2 | httpx |
| =0. | pyspnego |
نحوه نصب
نصب پکیج whl httpx-ntlm-1.4.0:
pip install httpx-ntlm-1.4.0.whl
نصب پکیج tar.gz httpx-ntlm-1.4.0:
pip install httpx-ntlm-1.4.0.tar.gz