Skip to main content

Shattered

STOMP meets bottle.py

Build Status

Getting Started

Installation

pip install shattered

Echo Server

app.py

import logging

from shattered import Shattered


logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

app = Shattered(host="rabbitmq")


@app.subscribe("/queue/echo")
def echo(headers, body, conn):
    logger.info("%s %s", headers, body)


@app.subscribe("/queue/echo")
def echo_fancy(headers, body, conn):
    logger.info("✨✨✨%s %s✨✨✨", headers, body)


app.run()

Running the Demo

Start up RabbitMQ using docker-compose up

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

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

Metadata

Release files for shattered 0.3.0

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

Source distribution (sdist)

Source distribution for shattered 0.3.0
File Size Uploaded Provenance
shattered-0.3.0.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for shattered 0.3.0
File Interpreter ABI Platform
shattered-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / shattered-0.3.0.tar.gz

Download URL shattered-0.3.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
248dd80fe6805babeed7ccc909e993824f57cfd3a57b82ac3247b031d615ab48
BLAKE2b-256 checksum
How to use checksums
70b382523332ee8f7e409b0a8337eb950912f33d61514fc42e3b5b884f250571
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.6 Darwin/19.2.0

Release files / shattered-0.3.0-py3-none-any.whl

Download URL shattered-0.3.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d7630d4ff19ca669c0264ede945c9dc3f86a6bb5a1faca6b665518f1eaaa15a
BLAKE2b-256 checksum
How to use checksums
c2b6add539cab0fbea57060a308a7c45a1d06e4c900f469ab6d763d7dfc14d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.6 Darwin/19.2.0

Security for shattered 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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