{ "info": { "author": "Samuele Santi", "author_email": "samuele@samuelesanti.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython" ], "description": "Python-pcapng\n#############\n\nPython library to parse the pcap-ng format used by newer versions\nof dumpcap & similar tools (wireshark, winpcap, ...).\n\n\nDocumentation\n=============\n\nIf you prefer the RTD theme, or want documentation for any version\nother than the latest, head here:\n\nhttp://python-pcapng.readthedocs.org/en/latest/\n\nIf you prefer the more comfortable, page-wide, default sphinx theme,\na documentation mirror is hosted on GitHub pages:\n\nhttp://rshk.github.io/python-pcapng/\n\n\nCI build status\n===============\n\n+----------+--------------------------------------------------------------------------+\n| Branch | Status |\n+==========+==========================================================================+\n| master | .. image:: https://travis-ci.org/rshk/python-pcapng.svg?branch=master |\n| | :target: https://travis-ci.org/rshk/python-pcapng |\n+----------+--------------------------------------------------------------------------+\n| develop | .. image:: https://travis-ci.org/rshk/python-pcapng.svg?branch=develop |\n| | :target: https://travis-ci.org/rshk/python-pcapng |\n+----------+--------------------------------------------------------------------------+\n\n\nSource code\n===========\n\nSource, issue tracker etc. on GitHub: https://github.com/rshk/python-pcapng\n\nGet the source from git::\n\n git clone https://github.com/rshk/python-pcapng\n\nDownload zip of the latest version:\n\nhttps://github.com/rshk/python-pcapng/archive/master.zip\n\nInstall from pypi::\n\n pip install python-pcapng\n\n\nPyPI status\n===========\n\nThe official page on the Python Package Index is: https://pypi.python.org/pypi/python-pcapng\n\n.. image:: https://pypip.in/version/python-pcapng/badge.svg?text=version\n :target: https://github.com/rshk/python-pcapng.git\n :alt: Latest PyPI version\n\n.. image:: https://pypip.in/download/python-pcapng/badge.svg?period=month\n :target: https://github.com/rshk/python-pcapng.git\n :alt: Number of PyPI downloads\n\n.. image:: https://pypip.in/py_versions/python-pcapng/badge.svg\n :target: https://pypi.python.org/pypi/python-pcapng/\n :alt: Supported Python versions\n\n.. image:: https://pypip.in/status/python-pcapng/badge.svg\n :target: https://pypi.python.org/pypi/python-pcapng/\n :alt: Development Status\n\n.. image:: https://pypip.in/license/python-pcapng/badge.svg\n :target: https://pypi.python.org/pypi/python-pcapng/\n :alt: License\n\n..\n .. image:: https://pypip.in/wheel/python-pcapng/badge.svg\n :target: https://pypi.python.org/pypi/python-pcapng/\n :alt: Wheel Status\n\n .. image:: https://pypip.in/egg/python-pcapng/badge.svg\n :target: https://pypi.python.org/pypi/python-pcapng/\n :alt: Egg Status\n\n .. image:: https://pypip.in/format/python-pcapng/badge.svg\n :target: https://pypi.python.org/pypi/python-pcapng/\n :alt: Download format\n\n\n\nWhy this library?\n=================\n\n- I need to decently extract some information from a bunch of pcap-ng\n files, but apparently tcpdump has some problems reading those files,\n\n I couldn't find other nice tools nor Python bindings to a library\n able to parse this format, so..\n\n- In general, it appears there are (quite a bunch of!) Python modules\n to parse the old (much simpler) format, but nothing for the new one.\n\n- And, they usually completely lack any form of documentation.\n\n\nIsn't it slow?\n==============\n\nYes, I guess it would be much slower than something written in C,\nbut I'm much better at Python than C.\n\n..and I need to get things done, and CPU time is not that expensive :)\n\n(Maybe I'll give a try porting the thing to Cython to speed it up, but\nanyways, pure-Python libraries are always useful, eg. for PyPy).\n\n\nHow do I use it?\n================\n\nBasic usage is as simple as:\n\n.. code-block:: python\n\n from pcapng import FileScanner\n\n with open('/tmp/mycapture.pcap') as fp:\n scanner = FileScanner(fp)\n for block in scanner:\n pass # do something with the block...\n\nHave a look at the blocks documentation to see what they do; also, the\n``examples`` directory contains some example scripts using the library.\n\n\nHacking\n=======\n\nFormat specification is here:\n\nhttp://www.winpcap.org/ntar/draft/PCAP-DumpFileFormat.html\n\nContributions are welcome, please contact me if you're planning to do\nsome big change, so that we can sort out the best way to integrate it.\n\nOr even better, open an issue so the whole world can partecipate in\nthe discussion :)\n\n\nPcap-ng write support\n=====================\n\nSupport for writing pcap-ng files is \"planned\"; that means: I have\nsome ideas on how to write that part and which would be the required\nchanges to the library.\n\nI didn't add that part (yet) as I currently don't need it, and I'm\nwondering whether anybody might (possible use cases are if you're\nwriting some packet capture tool in Python, or some other kind of\ncapture-file manipulation thing).\n\nIf you need this feature, I'd like to hear from you (otherwise, I\ndon't really think I'm going to invest much time in something that no\none needs..).\n\n\nHistory\n#######\n\nv0.1\n====\n\n- Support for \"scanning\" streams of pcap-ng data\n- Support for decoding the \"standard\" pcap-ng blocks:\n\n - Section headers\n - Interface description\n - Enhanced packet\n - Simple packet (deprecated)\n - Packet (deprecated)\n - Name resolution\n - Interface statistics\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rhsk/python-pcapng", "keywords": "", "license": "Apache Software License 2.0", "maintainer": "", "maintainer_email": "", "name": "python-pcapng", "package_url": "https://pypi.org/project/python-pcapng/", "platform": "", "project_url": "https://pypi.org/project/python-pcapng/", "project_urls": { "Homepage": "https://github.com/rhsk/python-pcapng" }, "release_url": "https://pypi.org/project/python-pcapng/0.2/", "requires_dist": null, "requires_python": "", "summary": "Library to read/write the pcap-ng format used by various packet sniffers", "version": "0.2" }, "last_serial": 2419704, "releases": { "0.1a0": [ { "comment_text": "", "digests": { "md5": "a14038ccc25006e7a7134900ffd250a9", "sha256": "8becf9a9c6e583cfab7bdba2974802dd57409439fbc3cad5225350f7b3512351" }, "downloads": -1, "filename": "python-pcapng-0.1a0.tar.gz", "has_sig": false, "md5_digest": "a14038ccc25006e7a7134900ffd250a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21744, "upload_time": "2014-12-29T00:57:06", "url": "https://files.pythonhosted.org/packages/81/75/ea2557249793b6280beff93c224e8c7da8baef83ad252d20e5a546dc2942/python-pcapng-0.1a0.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b2dec72d4fb9c939594e4876fb099ecc", "sha256": "b58d72c63136f663fd6d9252d4868777278e8b967e00ac14f1287754a0140956" }, "downloads": -1, "filename": "python-pcapng-0.2.tar.gz", "has_sig": false, "md5_digest": "b2dec72d4fb9c939594e4876fb099ecc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20923, "upload_time": "2016-10-24T11:31:13", "url": "https://files.pythonhosted.org/packages/0a/d7/17a5de0a0ab516bfe2ac624c7ffecd89330bc7883dba41c61271d733c514/python-pcapng-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b2dec72d4fb9c939594e4876fb099ecc", "sha256": "b58d72c63136f663fd6d9252d4868777278e8b967e00ac14f1287754a0140956" }, "downloads": -1, "filename": "python-pcapng-0.2.tar.gz", "has_sig": false, "md5_digest": "b2dec72d4fb9c939594e4876fb099ecc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20923, "upload_time": "2016-10-24T11:31:13", "url": "https://files.pythonhosted.org/packages/0a/d7/17a5de0a0ab516bfe2ac624c7ffecd89330bc7883dba41c61271d733c514/python-pcapng-0.2.tar.gz" } ] }