{ "info": { "author": "zemerick1", "author_email": "zemerick@emerickcc.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Python class for Aruba's Clearpass Policy Manager\n[https://www.emerickcc.com](https://www.emerickcc.com)\n\n[Aruba Networks](https://arubanetworks.com)\n\n## Examples\n```python\nfrom clearpasspy import Clearpass\n# Client_ID: clearpassapi\n# Grant Type: client_credentials OR password\n# client Secret: \n# Tackle first: client credentials\nserver = ''\ngrant_type = 'client_credentials'\nclient_secret = 'SUPER SECRET'\nclient_id = 'clearpassapi'\n\ndata = {\n 'server' : server,\n 'grant_type' : grant_type,\n 'secret' : client_secret,\n 'client' : client_id\n}\n\n# When you create the object, it automatically authenticates you, and stores the access token for subsequent calls.\nCPPM = ClearPass(data)\nprint(CPPM.access_token)\n3ea61fd137df506515ae45f0887df1163c4080f9\n\n# Takes MAC address with or without colons\nprint(CPPM.online_status('0000af23e980'))\nTrue\n\n# Takes 1 arg for limiting output. . max is 1000\nprint(CPPM.get_endpoints(10))\n[{'id': 4814, 'mac_address': '0000e349473f', 'status': 'Unknown', 'attributes': {}, '_links': {'self': {'href': 'https://clearpass.server.com/api/endpoint/4814'}}}\n\n# Print Endpoint by ID\nprint('Endpoint: {}'.format(CPPM.get_endpoint(4814)))\nEndpoint {'id': 4814, 'mac_address': '0000e349473f', 'status': 'Unknown', 'attributes': {}, '_links': {'self': {'href': 'https://clearpass.server.com/api/endpoint/4814'}}}\n\n# Calls API endpoint. Only supports GET method\nprint('API Call: {}'.format(CPPM.api('/auth-method')))\n\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zemerick1/clearpasspy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "clearpasspy", "package_url": "https://pypi.org/project/clearpasspy/", "platform": "", "project_url": "https://pypi.org/project/clearpasspy/", "project_urls": { "Homepage": "https://github.com/zemerick1/clearpasspy" }, "release_url": "https://pypi.org/project/clearpasspy/1.1.3/", "requires_dist": [ "requests (==2.21.0)" ], "requires_python": "", "summary": "ClearPass API Python Library", "version": "1.1.3" }, "last_serial": 4920155, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "5731713592ce957e7ce54f40f48bcd53", "sha256": "289b6b07d020a0a7cc5a3dce00edcde3573422745ee7493aeff6caea0ade3793" }, "downloads": -1, "filename": "clearpasspy-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5731713592ce957e7ce54f40f48bcd53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2817, "upload_time": "2019-02-27T23:34:49", "url": "https://files.pythonhosted.org/packages/53/a3/0870f7b436df0b79f8ccbc338262b67c6881e99d01e8cfe93abbabf8f17c/clearpasspy-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "d93558d9b17e36605188bb7b2c2c80c3", "sha256": "930f36aebdf6f86fd54472e76c82f7db25e9a21b2f3504875d151960cbb62bab" }, "downloads": -1, "filename": "clearpasspy-1.0.2.tar.gz", "has_sig": false, "md5_digest": "d93558d9b17e36605188bb7b2c2c80c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2879, "upload_time": "2019-02-28T04:31:28", "url": "https://files.pythonhosted.org/packages/77/13/907e3b19fd1962f4683c86b3d2f11820c964fe91c0aa9589da6bdbc21ab2/clearpasspy-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "5a11d8dc4ebbef04e806c94a97892ae4", "sha256": "5dbc6aa1e4a4d15447d76543d0738a0141174fe636182e0b36fde1b250651c8d" }, "downloads": -1, "filename": "clearpasspy-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "5a11d8dc4ebbef04e806c94a97892ae4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12013, "upload_time": "2019-03-08T01:51:11", "url": "https://files.pythonhosted.org/packages/99/e1/49201a78824d9b4522e363ec88ff5dcee8e36a4e41329ae4b6170a99be5e/clearpasspy-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bceeb2f6d85af15fd6babda1ecc11e07", "sha256": "925e20c9fa3e9457f384d2ab7b201ad8e7b4a6f4a37b21096387f795a44165cf" }, "downloads": -1, "filename": "clearpasspy-1.1.0.tar.gz", "has_sig": false, "md5_digest": "bceeb2f6d85af15fd6babda1ecc11e07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2938, "upload_time": "2019-03-08T01:51:12", "url": "https://files.pythonhosted.org/packages/30/59/33d9a399a646cb57ef2ef1953b629bb8ffa43883db94e4b3021362e446ea/clearpasspy-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "c618e14bac69d36fb8096f6166e277ee", "sha256": "7c0f00e6ba20c0bc5dbe5da6cd69c9b15946149b87e11e401d2e5471fbf6303e" }, "downloads": -1, "filename": "clearpasspy-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c618e14bac69d36fb8096f6166e277ee", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12030, "upload_time": "2019-03-08T02:01:37", "url": "https://files.pythonhosted.org/packages/5e/95/bc882966125955a0fc81d0732e9290cb49d0b7417de124395a5e0feb2580/clearpasspy-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c415a044b0e241ed97e79c3a26fad11a", "sha256": "0e9a8eaded02ba7176e10476e48c885e57d7e29ecba81c19513c0a718f0501b4" }, "downloads": -1, "filename": "clearpasspy-1.1.1.tar.gz", "has_sig": false, "md5_digest": "c415a044b0e241ed97e79c3a26fad11a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2993, "upload_time": "2019-03-08T02:01:38", "url": "https://files.pythonhosted.org/packages/ef/a9/e8339a197fcc30c05dd78c184844a6e868b361355437736580a2981f695d/clearpasspy-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "c637289d82ebe9db2500758d1b9821f6", "sha256": "b1c62aa39280c075130c6cd3c0f8c42a9c99b6ba3dec34a0baffab33276b4294" }, "downloads": -1, "filename": "clearpasspy-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c637289d82ebe9db2500758d1b9821f6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12040, "upload_time": "2019-03-08T02:11:01", "url": "https://files.pythonhosted.org/packages/90/4e/76500ee19c84a0a5c8250e2ed8a68812c5027e8e0250c1d678f091aa0eae/clearpasspy-1.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "745544bfe9a50b9c0edd2e2634e0ba16", "sha256": "2180604c327698167e73e8302ed276a24a1d1063b0273fdcf6f8118d4de0f843" }, "downloads": -1, "filename": "clearpasspy-1.1.2.tar.gz", "has_sig": false, "md5_digest": "745544bfe9a50b9c0edd2e2634e0ba16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2998, "upload_time": "2019-03-08T02:11:02", "url": "https://files.pythonhosted.org/packages/2b/d7/d3dff8999836d22fbfb25dea69c6f7941e5fe332ad4d48749785c5bc2a18/clearpasspy-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "0bf6750912c134836e4bb2697ed7697d", "sha256": "37259523ff85d53638573dded22a32a1a26b34dc71c0fac39e1444c1c31d5145" }, "downloads": -1, "filename": "clearpasspy-1.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0bf6750912c134836e4bb2697ed7697d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12072, "upload_time": "2019-03-10T01:43:45", "url": "https://files.pythonhosted.org/packages/8f/de/1a18a3eadf4993be06e60cb4b893789ea6f5959353153753044f4c222267/clearpasspy-1.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe432c6c307b235b79ed0eb560882b7a", "sha256": "1c08bdcfb0d3e60d0f92bfab01250ad7cfed12ca2b59749c08e0c4f7943e659d" }, "downloads": -1, "filename": "clearpasspy-1.1.3.tar.gz", "has_sig": false, "md5_digest": "fe432c6c307b235b79ed0eb560882b7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3027, "upload_time": "2019-03-10T01:43:47", "url": "https://files.pythonhosted.org/packages/a6/9e/dfd4e2fbefe8c362e08e001d10b1e3d933c128e191d878d9cea8ec0b4fe3/clearpasspy-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0bf6750912c134836e4bb2697ed7697d", "sha256": "37259523ff85d53638573dded22a32a1a26b34dc71c0fac39e1444c1c31d5145" }, "downloads": -1, "filename": "clearpasspy-1.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "0bf6750912c134836e4bb2697ed7697d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12072, "upload_time": "2019-03-10T01:43:45", "url": "https://files.pythonhosted.org/packages/8f/de/1a18a3eadf4993be06e60cb4b893789ea6f5959353153753044f4c222267/clearpasspy-1.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe432c6c307b235b79ed0eb560882b7a", "sha256": "1c08bdcfb0d3e60d0f92bfab01250ad7cfed12ca2b59749c08e0c4f7943e659d" }, "downloads": -1, "filename": "clearpasspy-1.1.3.tar.gz", "has_sig": false, "md5_digest": "fe432c6c307b235b79ed0eb560882b7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3027, "upload_time": "2019-03-10T01:43:47", "url": "https://files.pythonhosted.org/packages/a6/9e/dfd4e2fbefe8c362e08e001d10b1e3d933c128e191d878d9cea8ec0b4fe3/clearpasspy-1.1.3.tar.gz" } ] }