Skip to main content

一个用于解析pcap文件的python库

Project description

pypcaptools介绍

PyPI version

pypcaptools 是一个功能强大的 Python 库,用于处理 pcap 文件,支持多种流量分析和处理场景。

核心功能

  1. 流量分隔

按照会话 (Session) 分隔流量,并支持以 pcap 或 json 格式输出。

  1. 导入 MySQL 数据库

将流量数据从 pcap 文件导入到 MySQL 数据库中,方便后续管理和分析。可以选择以flow为单位进行导入,也可以选择以一个pcap文件为一个trace的单位进行导入

  1. 流量统计

从 MySQL 数据库中读取流量数据,进行灵活的条件查询和统计。

mysql数据库的表结构参考

  1. 单纯存储flow
  2. 存储trace
  3. 与trace关联的flow

安装

可以通过 pip 安装 pypcaptools

pip install pypcaptools

Quick Start

可以参考 examples 目录中的示例代码,快速了解并使用本库的功能。

贡献指南

如果你对 pypcaptools 感兴趣,并希望为项目贡献代码或功能,欢迎提交 Issue 或 Pull Request!

许可证

本项目基于 MIT License 许可协议开源。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypcaptools-1.7.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypcaptools-1.7-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file pypcaptools-1.7.tar.gz.

File metadata

  • Download URL: pypcaptools-1.7.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pypcaptools-1.7.tar.gz
Algorithm Hash digest
SHA256 913342e98a48b9a899a2dbd8e6335f05f3e9600cb9ee3a85dece9947fd64132d
MD5 de156c29ab48eb38d2d1e5df40347668
BLAKE2b-256 aff0b244a342fac45b99a7226932a6d38804873f78df54a9c3171c4d20df47f4

See more details on using hashes here.

File details

Details for the file pypcaptools-1.7-py3-none-any.whl.

File metadata

  • Download URL: pypcaptools-1.7-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for pypcaptools-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 610d1833c323381b367bec5bf13d73da3f82b16e985a6e42046b82924aa2a65a
MD5 dd0079ff7886094e922634ec3329e542
BLAKE2b-256 b844655af8834a5feeef4b58342469dbbd1a46b7841c19d5a886f72462312d23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page