wibechat 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wibechat/__init__.py +8 -0
- wibechat/py.typed +0 -0
- wibechat-0.1.0.dist-info/METADATA +48 -0
- wibechat-0.1.0.dist-info/RECORD +5 -0
- wibechat-0.1.0.dist-info/WHEEL +4 -0
wibechat/__init__.py
ADDED
wibechat/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: wibechat
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Wibechat Python SDK — token generation for Wibechat calling
|
|
5
|
+
Project-URL: Homepage, https://wibechat.com
|
|
6
|
+
Project-URL: Documentation, https://wibechat.com/developers
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Requires-Dist: livekit-api>=0.8.0
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# Wibechat Python SDK
|
|
13
|
+
|
|
14
|
+
Token generation for Wibechat calling, built on [LiveKit](https://livekit.io/).
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install wibechat
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
import os
|
|
26
|
+
from datetime import timedelta
|
|
27
|
+
from wibechat import AccessToken, RoomGrants
|
|
28
|
+
|
|
29
|
+
token = (
|
|
30
|
+
AccessToken(os.environ["WIBECHAT_API_KEY"], os.environ["WIBECHAT_API_SECRET"])
|
|
31
|
+
.with_identity("user-123")
|
|
32
|
+
.with_name("Alice")
|
|
33
|
+
.with_ttl(timedelta(hours=1))
|
|
34
|
+
.with_grants(RoomGrants(room_join=True, room="my-room", can_publish=True, can_subscribe=True))
|
|
35
|
+
.to_jwt()
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## API Reference
|
|
40
|
+
|
|
41
|
+
| Wibechat SDK | LiveKit equivalent |
|
|
42
|
+
|---|---|
|
|
43
|
+
| `AccessToken` | `livekit.api.AccessToken` |
|
|
44
|
+
| `RoomGrants` | `livekit.api.VideoGrants` |
|
|
45
|
+
|
|
46
|
+
## Documentation
|
|
47
|
+
|
|
48
|
+
See the [Wibechat Developer Portal](https://wibechat.com/developers) for full integration guides.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
wibechat/__init__.py,sha256=5q0R0_KSgNhVrBoGF6rHmCV0Bqk3m829haNCIXcq9N4,223
|
|
2
|
+
wibechat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
wibechat-0.1.0.dist-info/METADATA,sha256=VOJ7DlrPEHWc6uzM2JMn1E5yzE_2LfEcDo3Bh4rl2Yw,1194
|
|
4
|
+
wibechat-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
5
|
+
wibechat-0.1.0.dist-info/RECORD,,
|