eBPF event pipeline with pluggable sources and sinks.
- Python 3.12+
- uv
uv syncfrom sources.ebpf import EBPFEventSource
from sinks.kafka import KafkaEventSink
source = EBPFEventSource(bpf_prog=open("prog.c").read())
sink = KafkaEventSink(bootstrap_servers="localhost:9092", topic="events")
for event in source.events():
sink.write(event)uv run python -m pytest # tests
uv run python -m mypy sources/ sinks/ event.py tests/ # type check
uv run ruff format . # format
uv run ruff check . # lintMIT