Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slipstream_async-1.0.5.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slipstream_async-1.0.5-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file slipstream_async-1.0.5.tar.gz.

File metadata

  • Download URL: slipstream_async-1.0.5.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for slipstream_async-1.0.5.tar.gz
Algorithm Hash digest
SHA256 12b1dabd28ebac07a77eaa8bdb90793144c907861e463333268a81880bb2ba75
MD5 80713cfe1e9ba2b71d3ba7baf7837ef5
BLAKE2b-256 05265bb96c497cfcf29f97342153311369e1a1a6e31835968c72b897d8b1c565

See more details on using hashes here.

File details

Details for the file slipstream_async-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for slipstream_async-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0b21ee7beea11d581d951be2f2aa0fe6c0acefc3eec7b7a36dc5a9f78200c0c8
MD5 dc035cd193e530a9bbee991bc4d2e855
BLAKE2b-256 f64dd9f89373f02db12780723cb4228d07e43eab255ad3aa1bf4f7dce8b68a0b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page