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.1.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.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geniete_channels-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 dc0777f61a50dd1c21ff9bfdbce85161c0a070ce93e467ef1734603f6d66dfb8
MD5 7967ff3e0d07bfcea529c00f45055689
BLAKE2b-256 2ec7b9a3e5e17b26c62d9854699410b4ebf39df49e27775c3059ad8c03c34afe

See more details on using hashes here.

Provenance

The following attestation bundles were made for geniete_channels-0.1.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for geniete_channels-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b70a38e54a18dc6324afcce40940fec1eeaff64ab7afa8af3bb65a0f3892db4
MD5 cd42e2c79a80249ccf904f1b11da18c2
BLAKE2b-256 063da0d1774180c2d75087a4e16f9190ecb6858c852a6b5b5a501e6922de8c22

See more details on using hashes here.

Provenance

The following attestation bundles were made for geniete_channels-0.1.1-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