Skip to main content
Travis-CI Code coverage Documentation Status

Autobahn~Sync

Autobahn integration with crochet to provide WAMP for synchronous applications.

Originaly based on the work of Sam & Max (warning: French, pr0n and awesomeness inside !).

Quick example

from time import sleep
from autobahn_sync import publish, call, register, subscribe, run


@register('com.app.shout')
def shout(msg):
    return msg.upper()


@subscribe('com.app.idea')
def on_thought(msg):
    print("I've just had a new idea: %s" % msg)


run()
while True:
    print(call('com.app.shout', 'Autobahn is cool !'))
    publish('com.app.idea', 'Use autobahn everywhere !')
    sleep(1)

This code will connect to the crossbar router (don’t forget to start it before trying this snippet !) listening ws://127.0.0.1:8080/ws and register itself in realm realm1.

Also see the examples for more usecases

Bonus

See extensions folder for a nice Flask extension ;-)

Get it now

pip install -U autobahn-sync

License

MIT licensed. See the bundled LICENSE file for more details.

Metadata

Release files for autobahn-sync 0.3.2

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

Source distribution (sdist)

Source distribution for autobahn-sync 0.3.2
File Size Uploaded Provenance
autobahn-sync-0.3.2.tar.gz 7.6 kB Without provenance Details

Release files / autobahn-sync-0.3.2.tar.gz

Download URL autobahn-sync-0.3.2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1b9aebab11680005fde3c0e9d0cf5d24929f0b01336f06b866c1cea0408bf6d0
BLAKE2b-256 checksum
How to use checksums
1857116421184bb019190d649591f221303f64002273e359d06ad332ea06c0a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for autobahn-sync 0.3.2

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