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

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.6b2.tar.gz (42.3 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.6b2-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file slipstream_async-1.0.6b2.tar.gz.

File metadata

  • Download URL: slipstream_async-1.0.6b2.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.20

File hashes

Hashes for slipstream_async-1.0.6b2.tar.gz
Algorithm Hash digest
SHA256 54e3b0735c00159269712c90c4ec3de67fb778bad9c92e8f2512c5918f3201fa
MD5 05b71e49bdcbcd29f634abb0c332ad6b
BLAKE2b-256 8045e40f9ea7863bc7e5520cf77bce75cdd42f5919bff0b01f25eb885d1e2ffe

See more details on using hashes here.

File details

Details for the file slipstream_async-1.0.6b2-py3-none-any.whl.

File metadata

File hashes

Hashes for slipstream_async-1.0.6b2-py3-none-any.whl
Algorithm Hash digest
SHA256 97e2b39122f06a324b9d9eafe6cadf8a5657e78e225c3ad1964c882372800d24
MD5 b24e1d3eacee688d5ef8dac3c3bc95d5
BLAKE2b-256 48cf4f2aed276fa473d97a45d7254f504e356bc43f56be4c27354f07eb378c4c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.6b2 This release

2 files

1.0.5

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