{ "info": { "author": "Tetsumune KISO, Yoshiyuki YAMAUCHI, Nobuhiro ITOU", "author_email": "t2mune@gmail.com, info@greenhippo.co.jp, js333123@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet", "Topic :: System :: Networking" ], "description": "mrtparse\n========\n\n| mrtparse is a module to read and analyze the MRT format data.\n| The MRT format can be used to export routing protocol messages, state changes, and routing information base contents, and is defined in RFC6396_.\n| Programs like Quagga_ / Zebra_, BIRD_, OpenBGPD_ and PyRT_ can dump the MRT format data.\n| You can also download archives from `the Route Views Projects`_, `RIPE NCC`_.\n\n.. _RFC6396: https://tools.ietf.org/html/rfc6396\n.. _Quagga: http://www.nongnu.org/quagga/\n.. _Zebra: https://www.gnu.org/software/zebra/\n.. _BIRD: http://bird.network.cz/\n.. _OpenBGPD: http://www.openbgpd.org/\n.. _PyRT: https://github.com/mor1/pyrt\n.. _`the Route Views Projects`: http://archive.routeviews.org/\n.. _`RIPE NCC`: https://www.ripe.net/analyse/internet-measurements/routing-information-service-ris/ris-raw-data\n\nSupported MRT types\n-------------------\n\n+-------------------+---------+\n| Name | Value |\n+===================+=========+\n| TABLE\\_DUMP | 12 |\n+-------------------+---------+\n| TABLE\\_DUMP\\_V2 | 13 |\n+-------------------+---------+\n| BGP4MP | 16 |\n+-------------------+---------+\n| BGP4MP\\_ET | 17 |\n+-------------------+---------+\n\nSupported TABLE_DUMP subtypes\n------------------------------\n\n+-------------------+---------+\n| Name | Value |\n+===================+=========+\n| AFI\\_IPv4 | 1 |\n+-------------------+---------+\n| AFI\\_IPv6 | 2 |\n+-------------------+---------+\n\nSupported TABLE_DUMP_V2 subtypes\n--------------------------------\n\n+-------------------------------+---------+\n| Name | Value |\n+===============================+=========+\n| PEER_INDEX_TABLE | 1 |\n+-------------------------------+---------+\n| RIB\\_IPV4\\_UNICAST | 2 |\n+-------------------------------+---------+\n| RIB\\_IPV4\\_MULTICAST | 3 |\n+-------------------------------+---------+\n| RIB\\_IPV6\\_UNICAST | 4 |\n+-------------------------------+---------+\n| RIB\\_IPV6\\_MULTICAST | 5 |\n+-------------------------------+---------+\n| RIB\\_GENERIC | 6 |\n+-------------------------------+---------+\n| RIB\\_IPV4\\_UNICAST\\_ADDPATH | 8 |\n+-------------------------------+---------+\n| RIB\\_IPV4\\_MULTICAST\\_ADDPATH | 9 |\n+-------------------------------+---------+\n| RIB\\_IPV6\\_UNICAST\\_ADDPATH | 10 |\n+-------------------------------+---------+\n| RIB\\_IPV6\\_MULTICAST\\_ADDPATH | 11 |\n+-------------------------------+---------+\n| RIB\\_GENERIC\\_ADDPATH | 12 |\n+-------------------------------+---------+\n\nSupported BGP4MP/BGP4MP_ET subtypes\n-----------------------------------\n\n+--------------------------------------+---------+\n| Name | Value |\n+======================================+=========+\n| BGP4MP\\_STATE\\_CHANGE | 0 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE | 1 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE\\_AS4 | 4 |\n+--------------------------------------+---------+\n| BGP4MP\\_STATE\\_CHANGE\\_AS4 | 5 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE\\_LOCAL | 6 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE\\_AS4\\_LOCAL | 7 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE\\_ADDPATH | 8 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE\\_AS4\\_ADDPATH | 9 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE\\_LOCAL\\_ADDPATH | 10 |\n+--------------------------------------+---------+\n| BGP4MP\\_MESSAGE\\_AS4\\_LOCAL\\_ADDPATH | 11 |\n+--------------------------------------+---------+\n\nSupported BGP capabilities\n--------------------------\n\n+--------------------------------------------+---------+\n| Name | Value |\n+============================================+=========+\n| Multiprotocol Extensions for BGP-4 | 1 |\n+--------------------------------------------+---------+\n| Route Refresh Capability for BGP-4 | 2 |\n+--------------------------------------------+---------+\n| Outbound Route Filtering Capability | 3 |\n+--------------------------------------------+---------+\n| Graceful Restart Capability | 64 |\n+--------------------------------------------+---------+\n| Support for 4-octet AS number capability | 65 |\n+--------------------------------------------+---------+\n| ADD-PATH Capability | 69 |\n+--------------------------------------------+---------+\n\nSupported BGP attributes\n------------------------\n\n+-------------------------+---------+\n| Name | Value |\n+=========================+=========+\n| ORIGIN | 1 |\n+-------------------------+---------+\n| AS\\_PATH | 2 |\n+-------------------------+---------+\n| NEXT\\_HOP | 3 |\n+-------------------------+---------+\n| MULTI\\_EXIT\\_DISC | 4 |\n+-------------------------+---------+\n| LOCAL\\_PREF | 5 |\n+-------------------------+---------+\n| ATOMIC\\_AGGREGATE | 6 |\n+-------------------------+---------+\n| AGGREGATOR | 7 |\n+-------------------------+---------+\n| COMMUNITY | 8 |\n+-------------------------+---------+\n| ORIGINATOR\\_ID | 9 |\n+-------------------------+---------+\n| CLUSTER\\_LIST | 10 |\n+-------------------------+---------+\n| MP\\_REACH\\_NLRI | 14 |\n+-------------------------+---------+\n| MP\\_UNREACH\\_NLRI | 15 |\n+-------------------------+---------+\n| EXTENDED\\_COMMUNITIES | 16 |\n+-------------------------+---------+\n| AS4\\_PATH | 17 |\n+-------------------------+---------+\n| AS4\\_AGGREGATOR | 18 |\n+-------------------------+---------+\n| AIGP | 26 |\n+-------------------------+---------+\n| LARGE\\_COMMUNITY | 32 |\n+-------------------------+---------+\n| ATTR\\_SET | 128 |\n+-------------------------+---------+\n\nRequirements\n------------\n\nPython2 or Python3 or PyPy or PyPy3\n\nInstallation\n------------\n\n::\n\n $ pip install mrtparse\n\nor\n\n::\n\n $ git clone https://github.com/YoshiyukiYamauchi/mrtparse.git\n $ cd mrtparse\n $ python setup.py install\n\nUsage\n-----\n\n::\n\n from mrtparse import *\n\nor\n\n::\n\n import mrtparse\n\nProgramming\n-----------\n\nFirst, import the module.\n\n::\n\n from mrtparse import *\n\n| And pass a MRT format data as a filepath string or file object to a class Reader().\n| It is also supported gzip and bzip2 format.\n| You can retrieve each entry from the returned object using a loop and then process it.\n\n::\n\n d = Reader(f)\n for m in d:\n \n\nWe have prepared some example scripts and sample data in `\"examples\"`_ and `\"samples\"`_ directory.\n\n.. _`\"examples\"`: https://github.com/YoshiyukiYamauchi/mrtparse/tree/master/examples\n.. _`\"samples\"`: https://github.com/YoshiyukiYamauchi/mrtparse/tree/master/samples\n\nAuthors\n-------\n\n| Tetsumune KISO t2mune@gmail.com\n| Yoshiyuki YAMAUCHI info@greenhippo.co.jp\n| Nobuhiro ITOU js333123@gmail.com\n\nLicense\n-------\n\n| Licensed under the `Apache License, Version 2.0`_\n| Copyright \u00a9 2018 Tetsumune KISO\n\n.. _`Apache License, Version 2.0`: http://www.apache.org/licenses/LICENSE-2.0", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/YoshiyukiYamauchi/mrtparse", "keywords": "mrt bgp", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "mrtparse", "package_url": "https://pypi.org/project/mrtparse/", "platform": "any", "project_url": "https://pypi.org/project/mrtparse/", "project_urls": { "Homepage": "https://github.com/YoshiyukiYamauchi/mrtparse" }, "release_url": "https://pypi.org/project/mrtparse/1.7/", "requires_dist": null, "requires_python": "", "summary": "MRT format data parser", "version": "1.7" }, "last_serial": 4672256, "releases": { "1.4": [ { "comment_text": "", "digests": { "md5": "c3834d94d6d5a053864435786b684a75", "sha256": "a5d0dfdb3f942c67f6e38444f496cc493b3c8112888132576733e74894763883" }, "downloads": -1, "filename": "mrtparse-1.4.tar.gz", "has_sig": false, "md5_digest": "c3834d94d6d5a053864435786b684a75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27601, "upload_time": "2015-12-31T09:08:44", "url": "https://files.pythonhosted.org/packages/6a/82/8488f43a240ffa0f8fb413da234db0d0e2908699d96b2ccf523b22b0d1a7/mrtparse-1.4.tar.gz" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "3d1900fba458bbaafcc14c7ea93b1e52", "sha256": "25378951f02356f0a315664cc1eb5d4a0b974b16d7a115e1ce2148a4e99e87cb" }, "downloads": -1, "filename": "mrtparse-1.5.tar.gz", "has_sig": false, "md5_digest": "3d1900fba458bbaafcc14c7ea93b1e52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33753, "upload_time": "2016-12-27T16:16:06", "url": "https://files.pythonhosted.org/packages/ef/dc/9d732c272573987187b3b355bc56235b2e0d3ef3a287f70b437f87de4e28/mrtparse-1.5.tar.gz" } ], "1.6": [ { "comment_text": "", "digests": { "md5": "20c7f6908f7e4641ddc2b1bd39ad5ea8", "sha256": "9bc87a1237a0ab6e922aecd17061d9d65ccb09c02a1294114a7fdb8bd0c3a7e5" }, "downloads": -1, "filename": "mrtparse-1.6.tar.gz", "has_sig": false, "md5_digest": "20c7f6908f7e4641ddc2b1bd39ad5ea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34122, "upload_time": "2017-07-01T18:33:07", "url": "https://files.pythonhosted.org/packages/9a/16/4c0b5f91cf9d993140fa4ac3030bc72ada311b625097c18a8d348010d5a0/mrtparse-1.6.tar.gz" } ], "1.7": [ { "comment_text": "", "digests": { "md5": "c8690e385e7c2df87c658d46d33e5fd4", "sha256": "5adfe8ea4d9850e70cef0c3bd90c53395e0f6250a23acaa3a3e6c3003db01ede" }, "downloads": -1, "filename": "mrtparse-1.7.tar.gz", "has_sig": false, "md5_digest": "c8690e385e7c2df87c658d46d33e5fd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33908, "upload_time": "2019-01-08T09:57:31", "url": "https://files.pythonhosted.org/packages/1a/b6/3cabd63add419de26f468637af03cdde6fc58936b5cf6991f473e224e52d/mrtparse-1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c8690e385e7c2df87c658d46d33e5fd4", "sha256": "5adfe8ea4d9850e70cef0c3bd90c53395e0f6250a23acaa3a3e6c3003db01ede" }, "downloads": -1, "filename": "mrtparse-1.7.tar.gz", "has_sig": false, "md5_digest": "c8690e385e7c2df87c658d46d33e5fd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33908, "upload_time": "2019-01-08T09:57:31", "url": "https://files.pythonhosted.org/packages/1a/b6/3cabd63add419de26f468637af03cdde6fc58936b5cf6991f473e224e52d/mrtparse-1.7.tar.gz" } ] }