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.6.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.6-cp311-cp311-manylinux_2_28_x86_64.whl (765.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pylibbpf-0.0.6-cp38-cp38-manylinux_2_28_x86_64.whl (763.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: pylibbpf-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 9c69251fda34f38fe183a666936d54ab32e511cfd24ce70cdc8e0f085e8e3abb
MD5 48f33b38c54022d21cbeee065b5a0c63
BLAKE2b-256 a3b82ef9a5c9e37f79dbce592abf0fcd6860b8b0a89c7a2358da6fdd786a5204

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.6.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.6-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylibbpf-0.0.6-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71cc7361e2cfed5fc6bfae633f7329f9c76a16bc64c6a113ae8570ef3d003bbe
MD5 77f3771601336ad98cf8f5eabc632ba3
BLAKE2b-256 b0bb207c98d512bc0235642fc3e26e864acf8c0599ea3f038c76dd1345b1fec1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.6-cp311-cp311-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.6-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylibbpf-0.0.6-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0bfcfe83ea2069c977dfc6dc205bd97ebb692d1c094ddf337c1dc7c07e2d22fa
MD5 ea713ab33d0ac0aea798f125b947cd62
BLAKE2b-256 bdd11b9c0d61f8026bec3d01627a3fc56d071366c677307c0f9f800955120c6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.6-cp38-cp38-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