Skip to main content

Python Bindings for Libbpf

Project description

Py-libbpf

This library provides Python bindings for libbpf on Linux to make loading of eBPF object files easier. This is meant to be used along with pythonbpf, the eBPF Python DSL compiler. This library makes it possible to attach these programs to events in the kernel right from inside Python.

Warning

IN DEVELOPMENT. DO NOT USE.

Prerequisites

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

Installation

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

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

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pylibbpf-0.0.4-cp38-cp38-manylinux_2_28_x86_64.whl (710.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: pylibbpf-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 eac92321a394ca51de20a569533b066f9276cc6f0b1788d9235dcea59ea447ec
MD5 8cda8cbfbba0a27ae1a14ccaeadf78f9
BLAKE2b-256 e2213d0638dc14303feed87c36c969a658d47225e9707300118668c3cef5d6df

See more details on using hashes here.

Provenance

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

Publisher: wheels.yml on varun-r-mallya/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.4-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylibbpf-0.0.4-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bfd54cc603bcf8a21cbba145941c79cfb93fd484b28f1fdaca9c82f496893afa
MD5 3b8bf7fbef9362bf67336b1b0a1db4f8
BLAKE2b-256 acba64e88e914f433a596bca6b462c13109711e9f0b3e48f8250dcabe9715aaa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.4-cp311-cp311-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on varun-r-mallya/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.4-cp38-cp38-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pylibbpf-0.0.4-cp38-cp38-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b139d8370e4c541ae1d3465fbb0966ad82f2fa5b5766b30ba3a1f4050d4c9e4
MD5 834e23fdc665c7aca711bfeba9cb3d11
BLAKE2b-256 6fc253d30d2ba8fc4126963e21367eff05948cd7204fa688c7e1b7af147249c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylibbpf-0.0.4-cp38-cp38-manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on varun-r-mallya/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