Skip to main content

This file is an extract from the the online documentation at https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy

What is Pcapy?

Pcapy is a Python extension module that enables software written in Python to access the routines from the pcap packet capture library.

From libpcap’s documentation: “Libpcap is a system-independent interface for user-level packet capture. Libpcap provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.”

What makes pcapy different from the others?

  • works with Python threads.

  • works both in UNIX with libpcap and Windows with WinPcap.

  • provides a simpler Object Oriented API.

Getting Pcapy

Current and past releases are available from https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy

Setup

Quick start

Grab the latest stable release, unpack it and run ‘python setup.py install’ from the directory where you placed it. Isn’t that easy?

Requirements

  • A Python interpreter. Versions 2.1.3 and newer are known to work.

  • A C++ compiler. GCC G++ 2.95, as well as Microsoft Visual Studio 6.0, are known to work.

  • Libpcap 0.7.2 or newer. Windows user are best to check WinPcap 3.0 or newer.

  • A recent release of Pcapy.

Compiling the source and installing

As this extension is written in C++ it needs to be compiled for the host system before it can be accessed from Python. Fortunately this process has been made easy by the setup.py script. In order to compile and install the source execute the following command from the directory where the pcapy’s distribution has been unpacked: ‘python setup.py install’. This will install the extension into the default Python’s modules path; note that you might need special permissions to write there. For more information on what commands and options are available from setup.py, run ‘python setup.py –help-commands’.

This extension has been tested under Linux and Windows systems and is known to work there, but it ought to work out-of-the-box on any system where Python and libpcap are available.

Licensing

This software is provided under under a slightly modified version of the Apache Software License. See the accompanying LICENSE file for more information.

Contact Us

Whether you want to report a bug, send a patch or give some suggestions on this package, drop us a few lines at oss@coresecurity.com.

Metadata

Release files for pcapy-binary 0.11.5.2

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

Built distributions (wheels)

Table of built distributions (wheels) for pcapy-binary 0.11.5.2
File Actions
pcapy_binary-0.11.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for pcapy_binary-0.11.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pcapy_binary-0.11.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for pcapy_binary-0.11.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pcapy_binary-0.11.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for pcapy_binary-0.11.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pcapy_binary-0.11.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details for pcapy_binary-0.11.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pcapy_binary-0.11.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details for pcapy_binary-0.11.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pcapy_binary-0.11.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details for pcapy_binary-0.11.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Total release size: 1.2 MB

Release files / pcapy_binary-0.11.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pcapy_binary-0.11.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 209.0 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
dfd775494114cbc81e15adf549f14ec777010f1cb82c265f973f669af80e3ce7
BLAKE2b-256 checksum
How to use checksums
4a2a12e7e34bce168db667874ab908b74dbff6abc2d29bcffb11280b695f8cca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release files / pcapy_binary-0.11.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pcapy_binary-0.11.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 208.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cd0aca6e36f4d294e63d0cbbf281fe13fad09d4fae037fbea895b8a5d600a4f7
BLAKE2b-256 checksum
How to use checksums
6e52c4df4993771960b38e5cb0b1f45e275865072666634333f85984be1cc038
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release files / pcapy_binary-0.11.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pcapy_binary-0.11.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 207.6 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a20e8d0feae7360806e0784908b1fb3f86e368ec0ec7b2ea67206a5b248cf084
BLAKE2b-256 checksum
How to use checksums
4d88f357927f2e55531eeda34de45a3e749e0be4b35ddf026c55134b46d4fb45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release files / pcapy_binary-0.11.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pcapy_binary-0.11.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 208.4 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
956145aabfd2a96aa45df769b95f0c07778af533946a93429256ef34e19360c4
BLAKE2b-256 checksum
How to use checksums
55262300a830df608976c590f8354dbff0f0a8b349b01e7e79dbc5fdc5560eee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release files / pcapy_binary-0.11.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pcapy_binary-0.11.5.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 208.7 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
4f4b4b15dd98f5ede8a62aeb25a23ce238866e3310e757afea1f4b6c6b5453bd
BLAKE2b-256 checksum
How to use checksums
884a8ec0bd0d883eb740a0601068a6a9b1c2e233de4f0c69af37706a1595bf58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release files / pcapy_binary-0.11.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pcapy_binary-0.11.5.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 208.3 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
70fedb0f37c0b1d7d87c653115ff9121200809642e16b8f6679f1994a435a9e0
BLAKE2b-256 checksum
How to use checksums
0168a4dc8f59dc430799193a3101b52e14921dcccaf677931b34694870d31611
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Security for pcapy-binary 0.11.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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