Skip to main content

janus

Python client for Janus.

dev

Setup a venv:

$ mkvirtualenv janus
(janus)$ pip install -e .[test]

and test it:

(janus)$ py.test test/ --cov janus --cov-report term-missing --pep8

usage

Typical usage is to create a representation of your Janus Plugin:

class MyPlugin(janus.Plugin):

    name = 'janus.plugin.krazyeyezkilla'

    def sup(self, greets)
        self.send_message({'wat': greets})


my_plugin = MyPlugin()

setup a Session:

session = janus.Session('ws://127.0.0.1', secret='janusrocks')
session.register_plugin(my_plugin)

keep it alive:

session_ka = janus.KeepAlive(session)
session_ka.daemon = True
session_ka.start()

and then use your plugin:

my_plugin.sup('dawg')

release

Tests pass:

py.test test/ --cov janus --cov-report term-missing --pep8

so update __version__ in janus.py. Commit and tag it:

git commit -am "release v{version}"
git tag -a v{version} -m "release v{version}"
git push --tags

and travis will publish it to pypi.

Metadata

Release files for janus-gateway 0.1.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 janus-gateway 0.1.2
File Size Uploaded Provenance Actions
janus-gateway-0.1.2.tar.gz 8.9 kB Without provenance Details for janus-gateway-0.1.2.tar.gz

Release files / janus-gateway-0.1.2.tar.gz

Download URL janus-gateway-0.1.2.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3cc81913e661a25c0f909ff44be33ad771b871c995b660bc2b55bc843b51810f
BLAKE2b-256 checksum
How to use checksums
47956801df88dfb5bb3379936ba08117ec687d83667e00560a632ace556196f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for janus-gateway 0.1.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.

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file 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