Skip to main content

pymergepcap

A simple Python GUI tool to generate mergecap commands for merging multiple PCAP or CAP files using Wireshark's mergecap.exe.


Screenshot


Features

  • Easy GUI: Built with PySimpleGUI for a user-friendly experience.
  • Configurable: Set and update the path to mergecap.exe via the GUI.
  • Flexible Input: Select a folder containing .cap or .pcap files to merge.
  • Output Selection: Choose your target merged PCAP file.
  • Command Generation: Generates the full Windows command for mergecap.exe with all paths properly quoted.
  • Cross-Platform Python: Works with Python 3.12+ on Windows.

Installation

  1. Clone this repository:
    git clone https://github.com/fxyzbtc/pymergepcap.git
    cd pymergepcap
    
  2. Install dependencies:
    pip install -r requirements.txt
    # or, if using PEP 621/pyproject.toml
    pip install .
    

Usage

GUI

  • Run with Python:

  • Or as a module:

    python -m pymergecap
    
  • Or as a CLI script (if installed):

    pymergecap
    

Steps

  1. Set the path to your mergecap.exe (from Wireshark) in the GUI or via config.ini.
  2. Select the folder containing your .cap or .pcap files.
  3. Choose the output file path.
  4. Click Merge to generate the command.
  5. Copy and run the generated command in your Windows Command Prompt.

Configuration

  • The path to mergecap.exe is stored in config.ini under [DEFAULT] MergecapPath.
  • You can update this path anytime using the Change Mergecap button in the GUI.

Example Command

"C:/Program Files/Wireshark/mergecap.exe" -w "D:/py/pymergepcap/merged.cap" "D:/py/pymergepcap/test1.cap" "D:/py/pymergepcap/test2.cap"

Screenshot

GUI Screenshot


License

MIT License


Credits


Happy merging!

Metadata

Release files for pymergepcap 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymergepcap 0.1.2
File Size Uploaded
pymergepcap-0.1.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymergepcap 0.1.2
File Interpreter ABI Platform
pymergepcap-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / pymergepcap-0.1.2.tar.gz

Download URL pymergepcap-0.1.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
19a83521894b54af09a8bb437fe3e0c50e9bc61f8fbce42ef9a7ea2c13453088
BLAKE2b-256 checksum
How to use checksums
92562441c687b5fb2fb8da17635d01b1e164f330d6c56c1ec474bdbc655931f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.25

Release files / pymergepcap-0.1.2-py3-none-any.whl

Download URL pymergepcap-0.1.2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f320987bcdc88ba1f8d3c9ff4639ff85953c2653c56b2ba378ffee596e6f5bb
BLAKE2b-256 checksum
How to use checksums
05cdb63cf274a9fe77eefbcbc476e5d0464513dd65aaf51b137d611296a8329d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.25

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page