{"id":34104823,"url":"https://github.com/ic-it/simplepcap","last_synced_at":"2025-12-14T18:01:14.982Z","repository":{"id":195651846,"uuid":"693373831","full_name":"ic-it/simplepcap","owner":"ic-it","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-01T23:18:27.000Z","size":1008,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-11T11:05:23.846Z","etag":null,"topics":["pcap","pcap-parser","python-pcap","python3"],"latest_commit_sha":null,"homepage":"https://ic-it.github.io/simplepcap/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ic-it.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-18T22:51:31.000Z","updated_at":"2024-03-26T00:41:51.000Z","dependencies_parsed_at":"2023-09-22T02:38:43.571Z","dependency_job_id":null,"html_url":"https://github.com/ic-it/simplepcap","commit_stats":null,"previous_names":["ic-it/simplepcap"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ic-it/simplepcap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ic-it%2Fsimplepcap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ic-it%2Fsimplepcap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ic-it%2Fsimplepcap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ic-it%2Fsimplepcap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ic-it","download_url":"https://codeload.github.com/ic-it/simplepcap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ic-it%2Fsimplepcap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27733213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pcap","pcap-parser","python-pcap","python3"],"created_at":"2025-12-14T18:00:26.885Z","updated_at":"2025-12-14T18:01:14.977Z","avatar_url":"https://github.com/ic-it.png","language":"Python","readme":"# Simple PCAP file parser\n\n![SimplePCAP. Logo Author: @mellin_venera](https://ic-it.github.io/simplepcap/assets/images/minilogo.png)  \n[\n    ![lint](https://img.shields.io/github/actions/workflow/status/ic-it/simplepcap/lint.yml)\n](https://github.com/ic-it/simplepcap/actions)\n[\n    ![IC-IT](https://img.shields.io/badge/IC--IT-2023-blue)\n](https://github.com/ic-it/)\n[\n    ![License](https://img.shields.io/github/license/ic-it/simplepcap)\n](\n    https://github.com/ic-it/simplepcap/blob/main/LICENSE\n)\n[\n    ![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue)\n](\n    https://www.python.org/downloads/release/python-3100/\n)\n[\n    ![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)\n](https://ic-it.github.io/simplepcap/)\n[\n    ![PyPI](https://img.shields.io/pypi/v/simplepcap)\n](https://pypi.org/project/simplepcap/)\n\n\u003e Based on [this](https://www.ietf.org/archive/id/draft-gharris-opsawg-pcap-01.html) \n\u003e and [this](https://wiki.wireshark.org/Development/LibpcapFileFormat#global-header) \n\u003e PCAP Capture File Format description.\n\n## About\nSimple PCAP was created to allow the user to focus as much as possible on processing packets stored in \na pcap file without studying its structure. This is a very simple tool, it does not provide additional \ntools for analyzing packages. The library tries to provide the safest possible manipulation of pcap files.\n\n\n## Installation\n### From PyPI\n```bash\npip install simplepcap\n```\n\n### From GitHub\n```bash\npip install git+https://github.com/ic-it/simplepcap.git\n```\n\n## Usage example\n### Simple usage\n```python\nfrom pprint import pprint\nfrom simplepcap.parsers import DefaultParser\n\n\nwith DefaultParser(file_path=\"./pcaps/eth-1.pcap\") as parser:\n    pprint(parser.file_header)\n    for packet in parser:\n        pprint(packet)\n```\n\n### Get all packets\n```python\nfrom pprint import pprint\nfrom simplepcap.parsers import DefaultParser\n\n\nwith DefaultParser(file_path=\"./pcaps/eth-1.pcap\") as parser:\n    packets = list(parser) # or packets = parser.get_all_packets()\n\npprint(packets)\n```\n\nLook at the [examples](./examples) folder for more examples.\n\n## Documentation\nLook at the [docs](https://ic-it.github.io/simplepcap/).\n\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n\n[//]: # (Comment to recache images 01)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fic-it%2Fsimplepcap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fic-it%2Fsimplepcap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fic-it%2Fsimplepcap/lists"}