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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc0777f61a50dd1c21ff9bfdbce85161c0a070ce93e467ef1734603f6d66dfb8
|
|
| MD5 |
7967ff3e0d07bfcea529c00f45055689
|
|
| BLAKE2b-256 |
2ec7b9a3e5e17b26c62d9854699410b4ebf39df49e27775c3059ad8c03c34afe
|
Provenance
The following attestation bundles were made for geniete_channels-0.1.1.tar.gz:
Publisher:
publish.yml on geniete/clients
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geniete_channels-0.1.1.tar.gz -
Subject digest:
dc0777f61a50dd1c21ff9bfdbce85161c0a070ce93e467ef1734603f6d66dfb8 - Sigstore transparency entry: 2219859844
- Sigstore integration time:
-
Permalink:
geniete/clients@6c397f85ece07a940da5178547a67ff4ce10e37c -
Branch / Tag:
refs/tags/geniete-channels-v0.1.1 - Owner: https://github.com/geniete
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c397f85ece07a940da5178547a67ff4ce10e37c -
Trigger Event:
push
-
Statement type:
File details
Details for the file geniete_channels-0.1.1-py3-none-any.whl.
File metadata
- Download URL: geniete_channels-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b70a38e54a18dc6324afcce40940fec1eeaff64ab7afa8af3bb65a0f3892db4
|
|
| MD5 |
cd42e2c79a80249ccf904f1b11da18c2
|
|
| BLAKE2b-256 |
063da0d1774180c2d75087a4e16f9190ecb6858c852a6b5b5a501e6922de8c22
|
Provenance
The following attestation bundles were made for geniete_channels-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on geniete/clients
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geniete_channels-0.1.1-py3-none-any.whl -
Subject digest:
4b70a38e54a18dc6324afcce40940fec1eeaff64ab7afa8af3bb65a0f3892db4 - Sigstore transparency entry: 2219859960
- Sigstore integration time:
-
Permalink:
geniete/clients@6c397f85ece07a940da5178547a67ff4ce10e37c -
Branch / Tag:
refs/tags/geniete-channels-v0.1.1 - Owner: https://github.com/geniete
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6c397f85ece07a940da5178547a67ff4ce10e37c -
Trigger Event:
push
-
Statement type: