Skip to main content

GenieTé ChannelService Python SDK — managed realtime pub/sub channels

Project description

geniete-channels

Python SDK for GenieTé ChannelService — managed realtime pub/sub channels: publish from anywhere, subscribe from browsers or servers, no relay infrastructure of your own.

pip install geniete-channels          # publish + tickets
pip install 'geniete-channels[ws]'    # + async subscribe stream
from geniete_channels import Channel

ch = Channel(token="tok_...", channel_id="chan_...")
ch.publish({"type": "message", "from": "bot", "text": "hello, channel"})
ticket = ch.ticket()      # one-time 30s credential for a browser client
from geniete_channels import AsyncChannel

ch = AsyncChannel(token="tok_...", channel_id="chan_...")
async for msg in ch.subscribe():      # pings filtered for you
    print(msg)

Channel and token management with your account API key:

from geniete_channels import ChannelsAdmin
admin = ChannelsAdmin(api_key="...")
chan = admin.create_channel("chat-general")
tok = admin.create_token(chan["id"], label="browser", can_read=True, can_write=True)

Full docs: https://channels.geniete.com/docs/channels/. Errors raise ChannelsError with the server's reason.

MIT © Genie, Inc.

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

geniete_channels-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geniete_channels-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file geniete_channels-0.1.0.tar.gz.

File metadata

  • Download URL: geniete_channels-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for geniete_channels-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8724a16b0ccaecabe9b65713524b6bf22197809c43d42f5e8258a08e20e56911
MD5 4404c05c896430d4bb978cd68201f49a
BLAKE2b-256 b752f64810d66c298cf33e816a91a6e4bf5bcbd4ded4e40b7a5f3a5188c59e0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for geniete_channels-0.1.0.tar.gz:

Publisher: publish.yml on geniete/clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geniete_channels-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for geniete_channels-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9014768be111f12c42a03073b09b825698852d1790070e7de9bfface66e7ea09
MD5 e019a99ca77f2943382637707b4ba6e3
BLAKE2b-256 9c5eadb66e0f35e559bde8fc2bd23d1383a8b2f13442e9aeb368eb7617df45d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for geniete_channels-0.1.0-py3-none-any.whl:

Publisher: publish.yml on geniete/clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page