Skip to content
المشاريع

حول

Slipstream provides a data-flow model to simplify development of stateful streaming applications.

البيانات والتحليلات

كيف تُقاس هذه الأرقام

ما يمكنك فعله

  • slipstream.handle: bind streams (iterables) and sinks (callables) to user defined handler functions
  • slipstream.stream: start streaming
  • slipstream.Topic: consume from (iterable), and produce to (callable) kafka using aiokafka
  • slipstream.Cache: store data to disk using rocksdict

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Test Python Package Documentation Status PyPI Downloads

Slipstream

Slipstream provides a data-flow model to simplify development of stateful streaming applications.

pip install slipstream-async
from asyncio import run

from slipstream import handle, stream


async def messages():
    for emoji in '🏆📞🐟👌':
        yield emoji


@handle(messages(), sink=[print])
def handle_message(msg):
    yield f'Hello {msg}!'


if __name__ == '__main__':
    run(stream())
Hello 🏆!
Hello 📞!
Hello 🐟!
Hello 👌!

Usage

Slipstream components interoperate with basic python building blocks:

  • Any-thing can be passed around as data
  • Any Callable may be used as a sink
  • AsyncIterables act as sources
  • Parallelize through handle

A many-to-many relation is established by passing multiple sources / sinks.

Quickstart

Install Slipstream along with aiokafka (latest):

pip install slipstream-async[kafka]

Spin up a local Kafka broker with docker-compose.yml, using localhost:29091 to connect:

docker compose up broker -d

Copy-paste this snippet.

Features

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…