Skip to main content

Streamline your stream processing.

Project description

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

Project details


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.3.tar.gz (32.4 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.3-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slipstream_async-1.0.3.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for slipstream_async-1.0.3.tar.gz
Algorithm Hash digest
SHA256 55c2445b585809dc276064842982f85e5178e9f96401e67ad0c1e6b2baf803de
MD5 0dc538b9ea3ae193433405faf599c396
BLAKE2b-256 a2f6649537900664da0f92791ecb6a735c2c23a5f79d661f5335bb602f453caa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slipstream_async-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 452d5ba923d1de8398774fffa8dcfca870edf5d7944de9a0fd659d16639bdf5d
MD5 beda341b6928f8780da98383f8d98522
BLAKE2b-256 e03286a4a2d9da820f79101b27fbbb1e4de5c7f9e5f27840f0eb1b13a04ac622

See more details on using hashes here.

Supported by

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