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.6b1.tar.gz (37.9 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.6b1-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slipstream_async-1.0.6b1.tar.gz
  • Upload date:
  • Size: 37.9 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.6b1.tar.gz
Algorithm Hash digest
SHA256 a5f6096e936edc43e8d094b7c5a47034c4933c224736637e1016f152266517d9
MD5 d9df9bbab9ce647b728324c79fe5a785
BLAKE2b-256 3edf0aa4a259ee4cf2bb1e920ccf70096b2a0d10c17615d70ef75840049adaa1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slipstream_async-1.0.6b1-py3-none-any.whl
Algorithm Hash digest
SHA256 8718c227cfd4e89c3620588353f864da2383be27fc45b9a7a4c26d3a00074600
MD5 f05d9774eb7d8272a1d7c2849ad41587
BLAKE2b-256 74c4f132a60d3ff733696f624f2cbc718b229e3c881989dcd294ccdff0e833cc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.6b1 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