Python Bindings for Libbpf
Project description
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c69251fda34f38fe183a666936d54ab32e511cfd24ce70cdc8e0f085e8e3abb
|
|
| MD5 |
48f33b38c54022d21cbeee065b5a0c63
|
|
| BLAKE2b-256 |
a3b82ef9a5c9e37f79dbce592abf0fcd6860b8b0a89c7a2358da6fdd786a5204
|
Provenance
The following attestation bundles were made for pylibbpf-0.0.6.tar.gz:
Publisher:
wheels.yml on pythonbpf/pylibbpf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylibbpf-0.0.6.tar.gz -
Subject digest:
9c69251fda34f38fe183a666936d54ab32e511cfd24ce70cdc8e0f085e8e3abb - Sigstore transparency entry: 626031717
- Sigstore integration time:
-
Permalink:
pythonbpf/pylibbpf@5c1071fac0597e67bf22c5730a82ae3c3c5de28d -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/pythonbpf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@5c1071fac0597e67bf22c5730a82ae3c3c5de28d -
Trigger Event:
release
-
Statement type:
File details
Details for the file pylibbpf-0.0.6-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pylibbpf-0.0.6-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 765.1 kB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71cc7361e2cfed5fc6bfae633f7329f9c76a16bc64c6a113ae8570ef3d003bbe
|
|
| MD5 |
77f3771601336ad98cf8f5eabc632ba3
|
|
| BLAKE2b-256 |
b0bb207c98d512bc0235642fc3e26e864acf8c0599ea3f038c76dd1345b1fec1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylibbpf-0.0.6-cp311-cp311-manylinux_2_28_x86_64.whl -
Subject digest:
71cc7361e2cfed5fc6bfae633f7329f9c76a16bc64c6a113ae8570ef3d003bbe - Sigstore transparency entry: 626031773
- Sigstore integration time:
-
Permalink:
pythonbpf/pylibbpf@5c1071fac0597e67bf22c5730a82ae3c3c5de28d -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/pythonbpf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@5c1071fac0597e67bf22c5730a82ae3c3c5de28d -
Trigger Event:
release
-
Statement type:
File details
Details for the file pylibbpf-0.0.6-cp38-cp38-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pylibbpf-0.0.6-cp38-cp38-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 763.4 kB
- Tags: CPython 3.8, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bfcfe83ea2069c977dfc6dc205bd97ebb692d1c094ddf337c1dc7c07e2d22fa
|
|
| MD5 |
ea713ab33d0ac0aea798f125b947cd62
|
|
| BLAKE2b-256 |
bdd11b9c0d61f8026bec3d01627a3fc56d071366c677307c0f9f800955120c6c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylibbpf-0.0.6-cp38-cp38-manylinux_2_28_x86_64.whl -
Subject digest:
0bfcfe83ea2069c977dfc6dc205bd97ebb692d1c094ddf337c1dc7c07e2d22fa - Sigstore transparency entry: 626031830
- Sigstore integration time:
-
Permalink:
pythonbpf/pylibbpf@5c1071fac0597e67bf22c5730a82ae3c3c5de28d -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/pythonbpf
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@5c1071fac0597e67bf22c5730a82ae3c3c5de28d -
Trigger Event:
release
-
Statement type: