aissemble-foundation-pdp-client-python


Nameaissemble-foundation-pdp-client-python JSON
Version 1.11.1 PyPI version JSON
download
home_pageNone
SummaryREST Policy Decision Point (PDP) client for Python-based components
upload_time2025-02-10 17:26:55
maintainerNone
docs_urlNone
authoraiSSEMBLE Baseline Community
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## aiSSEMBLE™ Foundation Policy Decision Point Python Client

[![PyPI](https://img.shields.io/pypi/v/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)](https://pypi.org/project/aissemble-foundation-pdp-client-python/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)

This module provides a client for authorizing a jwt, action and resource

The following tasks will help you add authentication to your module.

1. Example usage
    - Add the following to your code
    - 
    ```python         
        # The url points to your policy decision point base
        # For example http://localhost:8080/api/pdp
        pdp_client = PDPClient(auth_config.pdp_host_url()) 
        decision = pdp_client.authorize(your_jwt_string, None, 'some-action')
        if 'PERMIT' == decision:
            print('User is authorized to access XYZ')
        else:
            raise AissembleSecurityException('User is not authorized')
    ```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aissemble-foundation-pdp-client-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "aiSSEMBLE Baseline Community",
    "author_email": "aissemble@bah.com",
    "download_url": "https://files.pythonhosted.org/packages/48/1a/6cbed6273975d70a5a780a2e3b98510c1eccf53c639c2d1f9c70833f2418/aissemble_foundation_pdp_client_python-1.11.1.tar.gz",
    "platform": null,
    "description": "## aiSSEMBLE™ Foundation Policy Decision Point Python Client\n\n[![PyPI](https://img.shields.io/pypi/v/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)](https://pypi.org/project/aissemble-foundation-pdp-client-python/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/aissemble-foundation-pdp-client-python?logo=python&logoColor=gold)\n\nThis module provides a client for authorizing a jwt, action and resource\n\nThe following tasks will help you add authentication to your module.\n\n1. Example usage\n    - Add the following to your code\n    - \n    ```python         \n        # The url points to your policy decision point base\n        # For example http://localhost:8080/api/pdp\n        pdp_client = PDPClient(auth_config.pdp_host_url()) \n        decision = pdp_client.authorize(your_jwt_string, None, 'some-action')\n        if 'PERMIT' == decision:\n            print('User is authorized to access XYZ')\n        else:\n            raise AissembleSecurityException('User is not authorized')\n    ```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "REST Policy Decision Point (PDP) client for Python-based components",
    "version": "1.11.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "72d5cac6f7a976d97b2cc459ba54898442fc6a1ab03291c234be8452ae5b1a07",
                "md5": "a19d2e92354bfb8b1c7d4de177755f5a",
                "sha256": "b2b892caa7c94359fc923ebb99d2a35052b3d4d327727c4f13e2670472e31686"
            },
            "downloads": -1,
            "filename": "aissemble_foundation_pdp_client_python-1.11.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a19d2e92354bfb8b1c7d4de177755f5a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5775,
            "upload_time": "2025-02-10T17:26:54",
            "upload_time_iso_8601": "2025-02-10T17:26:54.090195Z",
            "url": "https://files.pythonhosted.org/packages/72/d5/cac6f7a976d97b2cc459ba54898442fc6a1ab03291c234be8452ae5b1a07/aissemble_foundation_pdp_client_python-1.11.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "481a6cbed6273975d70a5a780a2e3b98510c1eccf53c639c2d1f9c70833f2418",
                "md5": "2c13c84813fdf6c414309f41b8a05d89",
                "sha256": "188cc37a87d9801e871234e32b93cca34382182f4f6948c6e5d253aa486b4c13"
            },
            "downloads": -1,
            "filename": "aissemble_foundation_pdp_client_python-1.11.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2c13c84813fdf6c414309f41b8a05d89",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4685,
            "upload_time": "2025-02-10T17:26:55",
            "upload_time_iso_8601": "2025-02-10T17:26:55.101105Z",
            "url": "https://files.pythonhosted.org/packages/48/1a/6cbed6273975d70a5a780a2e3b98510c1eccf53c639c2d1f9c70833f2418/aissemble_foundation_pdp_client_python-1.11.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-10 17:26:55",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "aissemble-foundation-pdp-client-python"
}
        
Elapsed time: 1.35314s