Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for slipstream-async 1.0.6b3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slipstream-async 1.0.6b3
File Size Uploaded
slipstream_async-1.0.6b3.tar.gz 39.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slipstream-async 1.0.6b3
File Interpreter ABI Platform
slipstream_async-1.0.6b3-py3-none-any.whl Python 3 none any Details

Total release size: 67.3 kB

Release files / slipstream_async-1.0.6b3.tar.gz

Download URL slipstream_async-1.0.6b3.tar.gz
Size 39.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e8b62e8acec12b7b30852f03cc51ad35cb967de9fd001ca37b350596a82c0318
BLAKE2b-256 checksum
How to use checksums
4be434a1ec8dd173ca382205a4c28351ac7444725ee342b34a3696ea4815a99c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / slipstream_async-1.0.6b3-py3-none-any.whl

Download URL slipstream_async-1.0.6b3-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf0e8e449cd73277d2238dc63fa348f4e6d4b11d50a2b665cb2e4b2e082546ff
BLAKE2b-256 checksum
How to use checksums
e8dd255e714557bf93005652161098b22bc54c36ce908ee53c715313f34c88de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page