pure-pcapy3
Pure Python reimplementation of pcapy. This package is API compatible and a drop-in replacement.
What it is and what it does
pure-pcapy3 is a pure-Python reimplementation designed as a drop-in replacement for pcapy, focusing on file-based operations—reading and writing PCAP files—rather than live network traffic capture. The package aims for API compatibility, meaning code written for file operations should work with pure-pcapy3, though any feature requiring live capture will raise NotImplementedError.
The package is useful when you need PCAP file handling in a pure-Python environment without compiled dependencies, but it comes with significant caveats: it has been abandoned since its initial release on 2017-02-27 with no maintenance, updates, or bug fixes. It carries no known security vulnerabilities, but the lack of ongoing development means compatibility with modern Python versions and current PCAP formats is uncertain.
Use it for:
- Parse and analyze PCAP files in a pure-Python environment without compiled dependencies.
- Migrate code to a dependency-free alternative for file-based packet analysis only.
- Write PCAP files programmatically in Python without requiring system-level packet capture libraries.
- Test or prototype network packet analysis logic in environments where compiled extensions cannot be installed.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pure-Python implementation of the pcapy API for reading and writing PCAP network packet capture files, without support for live traffic capture.
No. The package is abandoned since 2017 with no maintenance signal, high install friction, and no documented Python version support. Use only if you have a specific legacy codebase already depending on it and cannot migrate to an actively maintained alternative. For new projects, choose a maintained PCAP library.
Install
pure-pcapy3 on PyPI
pip
pip install pure-pcapy3uv
uv add pure-pcapy3poetry
poetry add pure-pcapy3Installing pure-pcapy3
Before you install
High install friction due to source-only distribution. Package is abandoned as of 2017 with no maintenance or updates since initial release; use only if you need a static, file-based PCAP reader and can accept no ongoing support.
License in practice
Licensed under Simplified BSD (permissive), so you may use, modify, and distribute the package freely provided you retain the license notice.
Quickstart
pip install pure-pcapy3
import pure_pcapy3
# Read PCAP file
capture = pure_pcapy3.open_offline('capture.pcap')
header, data = capture.next()
Package is abandoned since 2017 and receives no maintenance; live traffic capture is not supported, only file operations.
Verify before relying
- Whether the API compatibility with pcapy remains sufficient for current use cases given the 2017 codebase.
- Whether Python version support is documented or tested against modern Python releases.
- Whether the package works correctly with modern PCAP file formats or only legacy formats.
- Actual module import name and available public API methods beyond file operations.
Package facts
| License | Simplified BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 3,455 days since the last release |
| First released | |
| Downloads | 130,368/month — #11,643 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pure-pcapy3-1.0.1.tar.gz
Keywords: pcap, file, reader, writer
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
pypcapPython wrapper around libpcap that lets you…
unclear · top 15,000 on PyPI
scapyScapy is a Python library for forging,…
copyleft · top 5,000 on PyPI
python-pcapngParses and writes pcap-ng packet capture files,…
permissive · top 15,000 on PyPI
pysharkPyshark wraps tshark (Wireshark's command-line…
permissive · top 5,000 on PyPI
dpktdpkt parses and creates TCP/IP protocol packets…
permissive · top 5,000 on PyPI
pydivertPyDivert is a Python binding for the WinDivert…
copyleft · top 15,000 on PyPI
h5netcdfh5netcdf reads and writes netCDF4 files using…
permissive · top 5,000 on PyPI
pynrrdReads and writes NRRD (Nearly Raw Raster Data)…
permissive · top 15,000 on PyPI
DAWG2-PythonRead-only access to DAWG (directed acyclic word…
permissive · top 15,000 on PyPI
PyPDF3PyPDF3 is a pure-Python PDF toolkit for…
permissive · top 15,000 on PyPI