Skip to main content

Python Bindings for Libbpf

Project description

pylibbpf dark mode

Downloads Build Status License

This library provides Python bindings for libbpf on Linux, making it easier to load eBPF object files. It is designed to be used together with PythonBPF, the eBPF compiler for Python. With these bindings, you can attach eBPF programs to kernel events directly from Python. All programs written with this are to be run with a sudo Python interpreter.

Note: This project is under active development and not ready for production use.

Dependencies

  • A compiler with C++11 support
  • Pip 10+ or CMake >= 4.1
  • Ninja or Pip 10+

Installation

pip install pylibbpf

Development

Clone this repository and pip install. Note the --recursive option which is needed for the pybind11 submodule:

sudo apt install libelf-dev
git clone --recursive https://github.com/varun-r-mallya/pylibbpf.git
pip install .

With the setup.py file included in this example, the pip install command will invoke CMake and build the pybind11 module as specified in CMakeLists.txt.

Building the documentation

The documentation here is still boilerplate.

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

pylibbpf-0.0.7.tar.gz (2.7 MB view details)

Uploaded Source

Built Distributions

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

pylibbpf-0.0.7-cp313-cp313-manylinux_2_28_x86_64.whl (765.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pylibbpf-0.0.7-cp312-cp312-manylinux_2_28_x86_64.whl (765.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

File details

Details for the file pylibbpf-0.0.7.tar.gz.

File metadata

  • Download URL: pylibbpf-0.0.7.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pylibbpf-0.0.7.tar.gz
Algorithm Hash digest
SHA256 068ea7a61d2b9e0ac91858637f452792121aae924e173dd8fdbde65a59371bbe
MD5 5d653783bbaefb96840d9025bb3eb465
BLAKE2b-256 a54952fe43a700b1acf5d654702fe90d93f0aa01fdd9949e8d2df40ffe32e6af

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.7.tar.gz:

Publisher: wheels.yml on pythonbpf/pylibbpf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylibbpf-0.0.7-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylibbpf-0.0.7-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e023398efa602105c642ba997a35c1a79d5c7ee127df051eec14e53a8e3f3574
MD5 01a995ddda59ed1fd59f061a0c0d626b
BLAKE2b-256 e110ffeef86a483e3598e405d32a2a840abfdae1a92b625eb68a7c33562bc0e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.7-cp313-cp313-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on pythonbpf/pylibbpf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylibbpf-0.0.7-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylibbpf-0.0.7-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2c844d1ddbd060417c765786b92a2f09ce2195181e186f1e6fb3f26b097448a1
MD5 5d6f8534cf69db3d7d238e7d87920831
BLAKE2b-256 75d51ea107a28b608c755612f04a41f6c12ccb4da6a2415c0b7c9ee58945a6b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.7-cp312-cp312-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on pythonbpf/pylibbpf

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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