Skip to main content

STOMP meets

Project description


STOMP meets

Build Status

Getting Started


pip install shattered


shattered run will run a Shattered app, using one of the following (in order):

  1. The --app flag.
  2. The SHATTERED_APP environment variable.
  3. as the application module name.

Use shattered config to see the current configuration (same app resolution as run command).

Echo Server

import logging

from shattered import Shattered

logger = logging.getLogger(__name__)

app = Shattered(host="rabbitmq")

def echo(headers, body, conn):"%s %s", headers, body)

def echo_fancy(headers, body, conn):"✨✨✨%s %s✨✨✨", headers, body)

Running the Demo

Start up RabbitMQ using docker-compose up

In another shell, run docker-compose run shattered python examples/echo/

In another shell, run docker-compose run shattered python examples/echo/

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

shattered-0.5.0.tar.gz (3.1 kB view hashes)

Uploaded source

Built Distribution

shattered-0.5.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page