Plugin de forja — arquitectura streaming con Kafka
Project description
forja-streaming
Plugin de forja que agrega la arquitectura streaming con Apache Kafka.
pip install forja forja-streaming
dfg init mi_proyecto --arch streaming
Stack
- Apache Kafka (KRaft, sin Zookeeper) — broker de mensajes
- confluent-kafka — cliente Python oficial de Confluent
- Pydantic — schemas de eventos tipados
- Kafka UI — interfaz web para inspeccionar topics (http://localhost:8080)
Arquitectura generada
src/<proyecto>/
├── producers/ # publican eventos a Kafka topics
├── consumers/ # consumen eventos de Kafka topics
├── streams/ # filtran y transforman eventos
├── sinks/ # persisten eventos procesados
├── schemas/ # modelos Pydantic de eventos
└── pipelines/
└── stream_pipeline.py # consumer → stream → sink
Arranque rápido
docker compose up -d # Kafka + Kafka UI
pip install -e ".[dev]"
cp .env.example .env
dfg run stream_pipeline # iniciar el consumer
Kafka UI disponible en http://localhost:8080
Integración con forja-lakehouse
El pyproject.toml generado incluye un optional [lakehouse] para escribir
eventos procesados directamente a Delta Lake:
pip install -e ".[lakehouse]"
Licencia
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
forja_streaming-0.1.0.tar.gz
(6.2 kB
view details)
Built Distribution
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 forja_streaming-0.1.0.tar.gz.
File metadata
- Download URL: forja_streaming-0.1.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0894adceb6f9366e7ed6145e0546e11a482626fc9002c2b0d5de2a5cf7e5087b
|
|
| MD5 |
c1e3b5f076f0abe11d95722c8d437957
|
|
| BLAKE2b-256 |
43874b37f76cad8090824280bffa7f172392b7dfc13cec8af376791e6875edb0
|
File details
Details for the file forja_streaming-0.1.0-py3-none-any.whl.
File metadata
- Download URL: forja_streaming-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bc7feb3fed12446dc2a1eb779df2a26161901e6acf820e1bf18b79dccabc15c
|
|
| MD5 |
f821a0ec5d69d41ef853a8a4f91a1864
|
|
| BLAKE2b-256 |
4fd4c333d7e3825a7c8a0da52c1f1b358c19c906d739b6ef8b8eff1d27dca8f9
|