requests-ntlm


Namerequests-ntlm JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/requests/requests-ntlm
SummaryThis package allows for HTTP NTLM authentication using the requests library.
upload_time2024-06-09 23:52:04
maintainerNone
docs_urlNone
authorBen Toews
requires_python>=3.8
licenseISC
keywords
VCS
bugtrack_url
requirements black isort requests pyspnego cryptography flask mypy pytest pytest-cov types-requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/requests/requests-ntlm",
    "name": "requests-ntlm",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Ben Toews",
    "author_email": "mastahyeti@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/15/74/5d4e1815107e9d78c44c3ad04740b00efd1189e5a9ec11e5275b60864e54/requests_ntlm-1.3.0.tar.gz",
    "platform": null,
    "description": "requests-ntlm\n=============\n\n.. image:: https://github.com/requests/requests-ntlm/actions/workflows/ci.yml/badge.svg\n    :target: https://github.com/requests/requests-ntlm/actions/workflows/ci.yml\n\nThis package allows for HTTP NTLM authentication using the requests library.\n\nUsage\n-----\n\n``HttpNtlmAuth`` extends requests ``AuthBase``, so usage is simple:\n\n.. code:: python\n\n    import requests\n    from requests_ntlm import HttpNtlmAuth\n\n    requests.get(\"http://ntlm_protected_site.com\",auth=HttpNtlmAuth('domain\\\\username','password'))\n\n``HttpNtlmAuth`` can be used in conjunction with a ``Session`` in order to\nmake use of connection pooling. Since NTLM authenticates connections,\nthis is more efficient. Otherwise, each request will go through a new\nNTLM challenge-response.\n\n.. code:: python\n\n    import requests\n    from requests_ntlm import HttpNtlmAuth\n\n    session = requests.Session()\n    session.auth = HttpNtlmAuth('domain\\\\username','password')\n    session.get('http://ntlm_protected_site.com')\n\nInstallation\n------------\n\n    pip install requests_ntlm\n\nRequirements\n------------\n\n- requests_\n- pyspnego_\n\n.. _requests: https://github.com/kennethreitz/requests/\n.. _pyspnego: https://github.com/jborean93/pyspnego/\n\nAuthors\n-------\n\n- `Ben Toews`_\n\n.. _Ben Toews: https://github.com/mastahyeti\n\n- `Ian Cordasco`_\n\n.. _Ian Cordasco: https://github.com/sigmavirus24\n\n- `Cory Benfield`_\n\n.. _Cory Benfield: https://github.com/Lukasa\n",
    "bugtrack_url": null,
    "license": "ISC",
    "summary": "This package allows for HTTP NTLM authentication using the requests library.",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/requests/requests-ntlm"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9e5d836b97537a390cf811b0488490c389c5a614f0a93acb23f347bd37a2d914",
                "md5": "fbb08fbdf099fdbcb4722d16f0dda6cd",
                "sha256": "4c7534a7d0e482bb0928531d621be4b2c74ace437e88c5a357ceb7452d25a510"
            },
            "downloads": -1,
            "filename": "requests_ntlm-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fbb08fbdf099fdbcb4722d16f0dda6cd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6577,
            "upload_time": "2024-06-09T23:52:03",
            "upload_time_iso_8601": "2024-06-09T23:52:03.241157Z",
            "url": "https://files.pythonhosted.org/packages/9e/5d/836b97537a390cf811b0488490c389c5a614f0a93acb23f347bd37a2d914/requests_ntlm-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "15745d4e1815107e9d78c44c3ad04740b00efd1189e5a9ec11e5275b60864e54",
                "md5": "430f303715400e2274c579b7095a2116",
                "sha256": "b29cc2462623dffdf9b88c43e180ccb735b4007228a542220e882c58ae56c668"
            },
            "downloads": -1,
            "filename": "requests_ntlm-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "430f303715400e2274c579b7095a2116",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 16112,
            "upload_time": "2024-06-09T23:52:04",
            "upload_time_iso_8601": "2024-06-09T23:52:04.854703Z",
            "url": "https://files.pythonhosted.org/packages/15/74/5d4e1815107e9d78c44c3ad04740b00efd1189e5a9ec11e5275b60864e54/requests_ntlm-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-09 23:52:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "requests",
    "github_project": "requests-ntlm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "black",
            "specs": [
                [
                    "==",
                    "24.4.2"
                ]
            ]
        },
        {
            "name": "isort",
            "specs": [
                [
                    "==",
                    "5.13.2"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.0.0"
                ]
            ]
        },
        {
            "name": "pyspnego",
            "specs": []
        },
        {
            "name": "cryptography",
            "specs": [
                [
                    ">=",
                    "1.3"
                ]
            ]
        },
        {
            "name": "flask",
            "specs": []
        },
        {
            "name": "mypy",
            "specs": [
                [
                    "==",
                    "1.10.0"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "pytest-cov",
            "specs": []
        },
        {
            "name": "types-requests",
            "specs": []
        }
    ],
    "lcname": "requests-ntlm"
}
        
Elapsed time: 0.26750s