Skip to main content

Bring autobahn to your synchronous apps !

Project description

Travis-CI Code coverage Documentation Status


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

def shout(msg):
    return msg.upper()

def on_thought(msg):
    print("I've just had a new idea: %s" % msg)

while True:
    print(call('', 'Autobahn is cool !'))
    publish('', 'Use autobahn everywhere !')

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

Also see the examples for more usecases


See extensions folder for a nice Flask extension ;-)

Get it now

pip install -U autobahn-sync


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

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

autobahn-sync-0.3.2.tar.gz (7.6 kB view hashes)

Uploaded source

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