Skip to content
Snippets Groups Projects
Select Git revision
  • e5028fe9aa7e5ce1d937fff4f01b917f089b41f5
  • master default protected
2 results

README.md

Blame
  • hello_world.py 266 B
    import faust
    
    app = faust.App("hello-world", broker="kafka://localhost:9092", value_serializer="raw",)
    
    greetings_topic = app.topic("first-topic")
    
    
    @app.agent(greetings_topic)
    async def greet(greetings):
        async for greeting in greetings:
            print(greeting)