{ "info": { "author": "James Simpson", "author_email": "James@snowterminal.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: System :: Networking :: Firewalls", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "# PyFortiAPI\n\n[![image](https://img.shields.io/github/license/jsimpso/PyFortiAPI.svg)](https://github.com/jsimpso/PyFortiAPI)\n[![image](https://img.shields.io/pypi/v/pyfortiapi.svg)](https://pypi.python.org/pypi/PyFortiAPI)\n[![image](https://img.shields.io/pypi/pyversions/pyfortiapi.svg)](https://pypi.python.org/pypi/PyFortiAPI)\n\nA Python wrapper for the FortiGate REST API (FortiOS 5.4.x+)\n\nHere's a quick usage example:\n\n``` sourceCode python\n>>> import pyfortiapi\n>>> \n>>> device = pyfortiapi.FortiGate(ipaddr=\"192.168.0.99\", username=\"admin\", password=\"Guest\")\n>>> device.get_firewall_address('Test')\n404\n>>> create_payload = \"{'name': 'Test', 'type': 'subnet', 'subnet': '192.168.0.0 255.255.255.0'}\"\n>>> device.create_firewall_address('Test', create_payload)\n200\n>>> device.get_firewall_address('Test')\n[{'name': 'Test', 'q_origin_key': 'Test', 'uuid': '9bf2e12a-977b-51e7-ff8d-22d7cf593ab9', 'subnet': '192.168.0.0 255.255.255.0', 'type': 'ipmask', 'start-ip': '192.168.0.0', 'end-ip': '255.255.0.0', 'fqdn': '', 'country': '\\n\\x05', 'wildcard-fqdn': '', 'cache-ttl': 0, 'wildcard': '192.168.0.0 255.255.0.0', 'comment': '', 'visibility': 'enable', 'associated-interface': '', 'color': 0, 'tags': [], 'allow-routing': 'disable'}]\n>>> update_payload = \"{'subnet': '10.0.0.0 255.0.0.0'}\"\n>>> device.update_firewall_address('Test', update_payload)\n200\n>>> device.get_firewall_address('Test')\n[{'name': 'Test', 'q_origin_key': 'Test', 'uuid': '9bf2e12a-977b-51e7-ff8d-22d7cf593ab9', 'subnet': '10.0.0.0 255.0.0.0', 'type': 'ipmask', 'start-ip': '10.0.0.0', 'end-ip': '255.0.0.0', 'fqdn': '', 'country': '\\n', 'wildcard-fqdn': '', 'cache-ttl': 0, 'wildcard': '10.0.0.0 255.0.0.0', 'comment': '', 'visibility': 'enable', 'associated-interface': '', 'color': 0, 'tags': [], 'allow-routing': 'disable'}]\n>>> device.get_firewall_address(filters='start-ip==10.0.0.0&visibility==enable')\n[{'name': 'Test', 'q_origin_key': 'Test', 'uuid': '9bf2e12a-977b-51e7-ff8d-22d7cf593ab9', 'subnet': '10.0.0.0 255.0.0.0', 'type': 'ipmask', 'start-ip': '10.0.0.0', 'end-ip': '255.0.0.0', 'fqdn': '', 'country': '\\n', 'wildcard-fqdn': '', 'cache-ttl': 0, 'wildcard': '10.0.0.0 255.0.0.0', 'comment': '', 'visibility': 'enable', 'associated-interface': '', 'color': 0, 'tags': [], 'allow-routing': 'disable'}]\n>>> device.delete_firewall_address('Test')\n200\n>>> device.get_firewall_address('Test')\n404\n```\n\n## Installation\n\nTo install, just:\n\n``` sourceCode none\npip install pyfortiapi\n```\n\n## Documentation\n\nExtended documentation is available at\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/jsimpso/PyFortiAPI", "keywords": "fortigate fortios api", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "PyFortiAPI", "package_url": "https://pypi.org/project/PyFortiAPI/", "platform": "", "project_url": "https://pypi.org/project/PyFortiAPI/", "project_urls": { "Homepage": "https://github.com/jsimpso/PyFortiAPI" }, "release_url": "https://pypi.org/project/PyFortiAPI/0.1.0/", "requires_dist": [ "requests" ], "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "summary": "Python Wrapper for FortiGate API", "version": "0.1.0" }, "last_serial": 4761899, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "28488e414c6f994816db43a230afa3e9", "sha256": "490605a414b1a7bf145f48d5635df1ea187ccc0f8829e8af1a733f7cf3baca43" }, "downloads": -1, "filename": "PyFortiAPI-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "28488e414c6f994816db43a230afa3e9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 6479, "upload_time": "2018-02-21T06:08:40", "url": "https://files.pythonhosted.org/packages/9a/f4/e9d11f3060e4374205ee36cd7dcfce7e8c31c7427beb8d334a636655ab03/PyFortiAPI-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3f3452c07088108aa74e00d5de5f283", "sha256": "1fde51910e162ee05ac0d9ded08e1aafde86655c084364f671629b4776458910" }, "downloads": -1, "filename": "PyFortiAPI-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d3f3452c07088108aa74e00d5de5f283", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 5801, "upload_time": "2018-02-21T06:08:44", "url": "https://files.pythonhosted.org/packages/11/58/50c8a6cda724158fb6cd26ede7920d79ea4e51263eef35002f67133b86c9/PyFortiAPI-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "44e5dad9329fa07c68dde71b7d98cd16", "sha256": "49f8ea6d7507a6726462f189df1c875cb1942eb1dd49bb7bdffb06d81b3520c5" }, "downloads": -1, "filename": "PyFortiAPI-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "44e5dad9329fa07c68dde71b7d98cd16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 6621, "upload_time": "2017-09-14T12:54:01", "url": "https://files.pythonhosted.org/packages/23/87/9e65ea79b145da6e4263afcca0db02e73e2b24bdcd3325da86ba0d957c93/PyFortiAPI-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2a34cdd18d7689123d12a8f526b9a133", "sha256": "26b4e1b6ef567317b235ad6b05bbee27bc77d41d98554fb3e79fcbe4484bc5c6" }, "downloads": -1, "filename": "PyFortiAPI-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2a34cdd18d7689123d12a8f526b9a133", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 10331, "upload_time": "2017-09-14T12:54:03", "url": "https://files.pythonhosted.org/packages/94/95/6db68a40cdb1e12725509b84e79e4778e27f5b95e206136e709ab64276ae/PyFortiAPI-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0a033afb5919c89b00b7f9f903b8a18f", "sha256": "2c1c9e96c6b7e266750a89cd6b0a18102a7d9532d7f9f6885ff4dfab60ba5d67" }, "downloads": -1, "filename": "PyFortiAPI-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0a033afb5919c89b00b7f9f903b8a18f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 6557, "upload_time": "2017-09-14T13:24:47", "url": "https://files.pythonhosted.org/packages/4a/86/3946c878124dba73aae1f6652dc6a648b070d8e5cfc192189005f58a738d/PyFortiAPI-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "505773ac1644efab295c23fab79c90da", "sha256": "eaf1b637380d5c2b798dd19a81892854c471e642865c8da7489b3e6370e9b1f1" }, "downloads": -1, "filename": "PyFortiAPI-0.0.3.tar.gz", "has_sig": false, "md5_digest": "505773ac1644efab295c23fab79c90da", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 10329, "upload_time": "2017-09-14T13:24:49", "url": "https://files.pythonhosted.org/packages/4e/ed/9edcfd289068f03c74b5401005829f9bb802643fe8f394dbe7107b8e74b4/PyFortiAPI-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "d655f5c47e5b89f463b6b6b1c0283a56", "sha256": "13bb1f96037ed8b1a2e3f5d03312fd6304d0274e346cf9f33763c31b1095d519" }, "downloads": -1, "filename": "PyFortiAPI-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d655f5c47e5b89f463b6b6b1c0283a56", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 6653, "upload_time": "2017-09-19T04:44:31", "url": "https://files.pythonhosted.org/packages/cf/f8/1b99f36f1dcaf5c500c1e95ef329746c7fff4fc5447e51c7000b9b82a808/PyFortiAPI-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc4d9abc8b5dcf1d42025e902a7feb7b", "sha256": "e708d1c585cc82ac7ed9235e023aeb0ee3130ed7292fb48c162a9cefe024884c" }, "downloads": -1, "filename": "PyFortiAPI-0.0.4.tar.gz", "has_sig": false, "md5_digest": "fc4d9abc8b5dcf1d42025e902a7feb7b", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 10401, "upload_time": "2017-09-19T04:44:33", "url": "https://files.pythonhosted.org/packages/3d/1c/b973dee86e458880b071444fd9059daf5ba610ee965e716d2253a8eeaa5d/PyFortiAPI-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0ffb735791141f0037329c23bf1f6167", "sha256": "9fe6e4d8f9d407762bf010d10abd0da38e6dee805f868cac70ec359b3192dfbe" }, "downloads": -1, "filename": "PyFortiAPI-0.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0ffb735791141f0037329c23bf1f6167", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 6690, "upload_time": "2018-02-21T06:08:42", "url": "https://files.pythonhosted.org/packages/ac/8f/1ad1a97967c7856e8fbcfcee328d201af18abb5e602496ff5f1655be5b6c/PyFortiAPI-0.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1072ba9033cb4215dcb9dd71f4dc91fe", "sha256": "4c01a3303f148d3174b30587f8f8949e186db7c9e99b5a2bf8f9aed79fa07b56" }, "downloads": -1, "filename": "PyFortiAPI-0.0.5.tar.gz", "has_sig": false, "md5_digest": "1072ba9033cb4215dcb9dd71f4dc91fe", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 10386, "upload_time": "2018-02-21T06:08:45", "url": "https://files.pythonhosted.org/packages/54/64/8ca8f8be39843d2dcadeedc7a821042a5562172402e94c295611fbc059c0/PyFortiAPI-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "93b62ca9d649d5524f6dbbf7fcd8eef3", "sha256": "67eda18feac616aef10a4882cfef5c5c58771639d753fbff4fbfe050fa5f26b1" }, "downloads": -1, "filename": "PyFortiAPI-0.0.6.tar.gz", "has_sig": false, "md5_digest": "93b62ca9d649d5524f6dbbf7fcd8eef3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 10731, "upload_time": "2018-03-17T01:59:13", "url": "https://files.pythonhosted.org/packages/0f/d7/f5a1388a6d135a1d0288ca1ce852e22251070ca17e5447f7322dac87475c/PyFortiAPI-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "161fdc412d3b5284c6894ed63ab79296", "sha256": "b17bd66e0cb44bc33f8624ee13bca9ee73d2350e032a0f9c87ca7d89cfb83e33" }, "downloads": -1, "filename": "PyFortiAPI-0.0.7.tar.gz", "has_sig": false, "md5_digest": "161fdc412d3b5284c6894ed63ab79296", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 10722, "upload_time": "2018-03-17T02:06:31", "url": "https://files.pythonhosted.org/packages/7d/44/927d22dc024f2fa89d9e4f82f13f63499086a6f15c6e6a22807b2bcd7483/PyFortiAPI-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "8b0b90e53270527cbb520bcac025cf98", "sha256": "2bd8fb097571478e11b84b6c45447c802003bf5680ee844e66db2de22075ed00" }, "downloads": -1, "filename": "PyFortiAPI-0.0.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b0b90e53270527cbb520bcac025cf98", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 6620, "upload_time": "2018-11-06T03:48:00", "url": "https://files.pythonhosted.org/packages/08/13/e60c2755378c78d9e5376abbca4e290d3cbc6fc855ddbf2f96a8cddb8069/PyFortiAPI-0.0.8-py2.py3-none-any.whl" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "89418ef1fb51fc20be67172664bee511", "sha256": "309f2e44f4c9bfd99cd6b383210a51f09c404e4bfe1d28779e20abf7291d9379" }, "downloads": -1, "filename": "PyFortiAPI-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "89418ef1fb51fc20be67172664bee511", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 5827, "upload_time": "2019-01-31T00:23:12", "url": "https://files.pythonhosted.org/packages/e3/24/25b718bcb426680f2aa80647e05b0f5a04aeceb2ceddb07dfa1ad06a0e61/PyFortiAPI-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f390d735c1e4ecbf8428fb36df5a68ec", "sha256": "9e53517129d8feff36be6ade1ce0f3179fb4a04ca34ff22a0e97ac925f0e77f8" }, "downloads": -1, "filename": "PyFortiAPI-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f390d735c1e4ecbf8428fb36df5a68ec", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 11154, "upload_time": "2019-01-31T00:23:13", "url": "https://files.pythonhosted.org/packages/72/b0/6565a1b6124c7f9ef13f8778ad7a6bc41647df0000278c77c38fca0a2d35/PyFortiAPI-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "89418ef1fb51fc20be67172664bee511", "sha256": "309f2e44f4c9bfd99cd6b383210a51f09c404e4bfe1d28779e20abf7291d9379" }, "downloads": -1, "filename": "PyFortiAPI-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "89418ef1fb51fc20be67172664bee511", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 5827, "upload_time": "2019-01-31T00:23:12", "url": "https://files.pythonhosted.org/packages/e3/24/25b718bcb426680f2aa80647e05b0f5a04aeceb2ceddb07dfa1ad06a0e61/PyFortiAPI-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f390d735c1e4ecbf8428fb36df5a68ec", "sha256": "9e53517129d8feff36be6ade1ce0f3179fb4a04ca34ff22a0e97ac925f0e77f8" }, "downloads": -1, "filename": "PyFortiAPI-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f390d735c1e4ecbf8428fb36df5a68ec", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4", "size": 11154, "upload_time": "2019-01-31T00:23:13", "url": "https://files.pythonhosted.org/packages/72/b0/6565a1b6124c7f9ef13f8778ad7a6bc41647df0000278c77c38fca0a2d35/PyFortiAPI-0.1.0.tar.gz" } ] }