Skip to content

Instantly share code, notes, and snippets.

View joaoferrao's full-sized avatar

João Ferrão joaoferrao

View GitHub Profile
@joaoferrao
joaoferrao / faust.py
Created May 29, 2019 09:39
quick faust code review
import faust
app = faust.App(id="test",broker="kafka://localhost:9092",store="memory://")
# convenience func for launching the app
def main() -> None:
app.main()
# Input topic, NOT managed by Faust. Marked
input_topic = app.topic('input', internal=False, partitions=1, value_type=str)