Skip to main content

Python-BPF

This is an LLVM IR generator for eBPF programs in Python. We use llvmlite to generate LLVM IR code from pure Python code. This is then compiled to LLVM object files, which can be loaded into the kernel for execution.

Development

Step 0. Make a virtual environment and activate it using python3 -m venv .venv && source .venv/bin/activate.
Step 1. Run make install to install the required dependencies.
Step 2. Run make to see the compilation output of the example.
Step 3. Run check.sh to check if generated object file passes through the verifier inside the examples directory.
Step 4. Run make in the examples/c-form directory to modify the example C BPF program to check the actual LLVM IR generated by clang.

Development Notes

Run ./check.sh run execve2.o; in examples folder

Authors

Metadata

Release files for pythonbpf 0.1.0

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

Source distribution (sdist)

Source distribution for pythonbpf 0.1.0
File Size Uploaded Provenance Actions
pythonbpf-0.1.0.tar.gz 19.5 kB With provenance Details for pythonbpf-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pythonbpf 0.1.0
File Interpreter ABI Platform Actions
pythonbpf-0.1.0-py3-none-any.whl Python 3 none any Details for pythonbpf-0.1.0-py3-none-any.whl

Total release size: 41.6 kB

Release files / pythonbpf-0.1.0.tar.gz

Download URL pythonbpf-0.1.0.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
54de63290e0944a77f53d4d8c9b967d1c6321fae294cb89e17822d1c3ad82a13
BLAKE2b-256 checksum
How to use checksums
7230faef003305f5e98d7d1754947b24f463b10cd6d8109a0b07cb73c7a3caff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2025.

Transparency log

Release files / pythonbpf-0.1.0-py3-none-any.whl

Download URL pythonbpf-0.1.0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e9934cb8a64801d0575800db5862a5706d0240e6e626bed72a941b35caba382
BLAKE2b-256 checksum
How to use checksums
4b45c00dc2fef8ead954ef9483f96659cc72b17d8cfad23706cd1fe94b234a73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2025.

Transparency log

Security for pythonbpf 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pythonbpf-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2025.

Transparency log

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