Skip to main content

django-wamp-client

Installation

$ pip install django-wamp-client

Add channels and wampclient to your INSTALLED_APPS:

INSTALLED_APPS = [
    'channels',
    'wampclient',
]

In your settings, configure your connection to the WAMP Router:

WAMP_CONNECTION = {
    'URL': "ws://127.0.0.1:9100/ws",
    'AUTHID': 'authid',
    'AUTHSECRET': 'secret',
    'REALM': "realname",
}

Configure your routing to include wampclient.routing:

channel_routing = [
    route("wamp.join", "testproject.consumers.wamp_join"),
    include('wampclient.routing'),
]

Start the channel workers:

$ ./manage.py runworker

Start the client that will connect to the WAMP Router:

$ ./manage.py wamp_client

Usage

from wampclient import publish, subscribe


def wamp_hello(greeting):
    publish('com.example.hello', "'sup?")


def wamp_join(message):
    # This consumer will be connected to the ``wamp.join`` channel
    subscribe('com.example.hello', wamp_hello)
    publish('com.example.hello', "Hi!", options={'exclude_me': False})

LICENSE

This software is released under the MIT License. See the LICENSE file.

Status

This project should be considered a proof of concept.

Metadata

Release files for django-wamp-client 0.0.3

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

Source distribution (sdist)

Source distribution for django-wamp-client 0.0.3
File Size Uploaded Provenance Actions
django-wamp-client-0.0.3.tar.gz 4.2 kB Without provenance Details for django-wamp-client-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-wamp-client 0.0.3
File Interpreter ABI Platform Actions
django_wamp_client-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details for django_wamp_client-0.0.3-py2.py3-none-any.whl

Total release size: 9.9 kB

Release files / django-wamp-client-0.0.3.tar.gz

Download URL django-wamp-client-0.0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aa79da30660b628a8d53266855e227be90a0ea2f71a30f4cfbf670b4447d08fc
BLAKE2b-256 checksum
How to use checksums
b9036234769fe0688ffe039ce793990a08aa95410d110648122f771d691ee120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_wamp_client-0.0.3-py2.py3-none-any.whl

Download URL django_wamp_client-0.0.3-py2.py3-none-any.whl
Size 5.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
98c0304d1c48310c7c5f021ca868d5ab623c3210abe601f91b3fcf61160cc484
BLAKE2b-256 checksum
How to use checksums
95207e65e6c388d811ac8d6e4b3c718d02db7d90a47284c7aad58cb44228008a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-wamp-client 0.0.3

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

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