m-abac


Namem-abac JSON
Version 1.0.15 PyPI version JSON
download
home_pagehttps://github.com/mobiovn
SummaryThư viện xử lý kiểm tra quyền theo logic ABAC (Attribute-based access control)
upload_time2024-09-11 09:34:03
maintainerNone
docs_urlNone
authorMOBIO
requires_python>=3
licenseMIT
keywords mobio mobio-engine m-abac
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ### ABAC Engine
Thư viện xử lý kiểm tra quyền theo logic ABAC (Attribute-based access control).


### Cài đặt:
```bash
 $ pip3 install m-abac
 ```

### Sử dụng:

##### Kiểm tra user có quyền thao tác hay không:
   ```python
    from mobio.libs.abac import PolicyDecisionPoint
    resource = "deal"
    # action = "UpdateFromSale"
    action = "ListFromSale"

    pdb = PolicyDecisionPoint(resource=resource, action=action)
    result = pdb.is_allowed()
    if not result.get_allow_access():
        # trả về lỗi không có quyền truy cập 
   ```
#### Log - 1.0.0
    - release sdk
#### Log - 1.0.2
    - update sdk
#### Log - 1.0.3
    - update cache
#### Log - 1.0.4
    - update cache
#### Log - 1.0.5
    - mm-dd operator
    - update if exists
#### Log - 1.0.6
    - update operator exists
#### Log - 1.0.7
    - format date string using parse, string ignore case, accept check value None
#### Log - 1.0.11
    - update abac check sub resource Product Holding

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mobiovn",
    "name": "m-abac",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": "mobio, mobio-engine, m-abac",
    "author": "MOBIO",
    "author_email": "contact@mobio.vn",
    "download_url": "https://files.pythonhosted.org/packages/87/fa/b3a91a9f8cb099ea74e4c9dd258985db52544ad75812dc6503c33a2fad76/m_abac-1.0.15.tar.gz",
    "platform": null,
    "description": "### ABAC Engine\nTh\u01b0 vi\u1ec7n x\u1eed l\u00fd ki\u1ec3m tra quy\u1ec1n theo logic ABAC (Attribute-based access control).\n\n\n### C\u00e0i \u0111\u1eb7t:\n```bash\n $ pip3 install m-abac\n ```\n\n### S\u1eed d\u1ee5ng:\n\n##### Ki\u1ec3m tra user c\u00f3 quy\u1ec1n thao t\u00e1c hay kh\u00f4ng:\n   ```python\n    from mobio.libs.abac import PolicyDecisionPoint\n    resource = \"deal\"\n    # action = \"UpdateFromSale\"\n    action = \"ListFromSale\"\n\n    pdb = PolicyDecisionPoint(resource=resource, action=action)\n    result = pdb.is_allowed()\n    if not result.get_allow_access():\n        # tr\u1ea3 v\u1ec1 l\u1ed7i kh\u00f4ng c\u00f3 quy\u1ec1n truy c\u1eadp \n   ```\n#### Log - 1.0.0\n    - release sdk\n#### Log - 1.0.2\n    - update sdk\n#### Log - 1.0.3\n    - update cache\n#### Log - 1.0.4\n    - update cache\n#### Log - 1.0.5\n    - mm-dd operator\n    - update if exists\n#### Log - 1.0.6\n    - update operator exists\n#### Log - 1.0.7\n    - format date string using parse, string ignore case, accept check value None\n#### Log - 1.0.11\n    - update abac check sub resource Product Holding\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Th\u01b0 vi\u1ec7n x\u1eed l\u00fd ki\u1ec3m tra quy\u1ec1n theo logic ABAC (Attribute-based access control)",
    "version": "1.0.15",
    "project_urls": {
        "Homepage": "https://github.com/mobiovn",
        "Source": "https://github.com/mobiovn"
    },
    "split_keywords": [
        "mobio",
        " mobio-engine",
        " m-abac"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "87fab3a91a9f8cb099ea74e4c9dd258985db52544ad75812dc6503c33a2fad76",
                "md5": "726e504058fca187e139da35b9fe86a7",
                "sha256": "b46bfb4bcb68a0811e1017be35b5f6e6e1f9ed1d1435f55e5ebcffaae97abdf8"
            },
            "downloads": -1,
            "filename": "m_abac-1.0.15.tar.gz",
            "has_sig": false,
            "md5_digest": "726e504058fca187e139da35b9fe86a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 33174,
            "upload_time": "2024-09-11T09:34:03",
            "upload_time_iso_8601": "2024-09-11T09:34:03.565096Z",
            "url": "https://files.pythonhosted.org/packages/87/fa/b3a91a9f8cb099ea74e4c9dd258985db52544ad75812dc6503c33a2fad76/m_abac-1.0.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-11 09:34:03",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "m-abac"
}
        
Elapsed time: 0.44903s