Python SDK for Azure Web PubSub
Project description
Azure Web PubSub
Installation
pip install pubsub-az
With client cli:
pip install pubsub-az[client]
Authorization
PUBSUB_CONN_STR
(Connection string in the portal)
Environment (.env)
For convenience, you can set os.environ["PUBSUB_CONN_STR"]
and can skip specifying it on every call.
E.g., create a .env
file:
PUBSUB_CONN_STR="<PUBSUB_CONN_STR>"
Then load it before importing
from dotenv import load_dotenv
load_dotenv()
import pubsub_az as pz
pz.service(hub='<hub>') # just works!
CLI
Basic listener priting messages received.
pubsub-client --user "<user-id>" --hub "<hub>" --groups "<g1>" "<g2>" # ...
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pubsub_az-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cfb3e81d4d85b9ad48510a4c72fb2545f341ac451826f2d1677ece6a3463665 |
|
MD5 | 7f42ec0d64e52a25fa5415015578633c |
|
BLAKE2b-256 | 803bf943869f6d0b9feb703bff1ce26ff3e87453ec0af45a7c8eb1fae9ce493d |