Official VideoHub Python SDK for building video, audio, and screen sharing applications.
Project description
VideoHub Python SDK
Official Python SDK for VideoHub – build video calls, audio rooms, and real-time communication applications easily.
VideoHub helps developers integrate video conferencing, audio rooms, screen sharing, and real-time communication into their applications with simple APIs.
Installation
Install the SDK from PyPI:
pip install videohub-python
Requirements
- Python 3.9+
- VideoHub API Key
- App credentials (App ID & App Secret)
Quick Start
from videohub import VideoHubClient, VideoHubConfig
config = VideoHubConfig(
api_key="vhub_live_xxxxxxxxx",
app_id="your_app_id",
app_secret="your_app_secret",
app_platform="web",
app_identifier="example.com"
)
client = VideoHubClient(config)
# Example: create a room token
token = client.rooms.create_token(
room_name="my-room",
user_id="user_123"
)
print(token)
Authentication
All requests require the following credentials:
| Field | Description |
|---|---|
| API Key | Account authentication key |
| App ID | Unique application identifier |
| App Secret | Secret used for request verification |
| App Platform | web, android, or ios |
| App Identifier | Domain or package name |
Example configuration:
config = VideoHubConfig(
api_key="vhub_live_xxxxx",
app_id="app_uuid",
app_secret="secret_xxxxx",
app_platform="web",
app_identifier="example.com"
)
Features
The VideoHub Python SDK supports:
- Video calling
- Audio rooms
- Screen sharing
- Room management
- Call management
- Admin APIs
- Secure authentication
Example: Create Room
room = client.rooms.create(
room_name="demo-room",
max_participants=5
)
print(room)
Example: Generate User Token
token = client.rooms.create_token(
room_name="demo-room",
user_id="user_123"
)
print(token)
Error Handling
The SDK raises structured exceptions for API errors.
from videohub.exceptions import VideoHubError
try:
client.rooms.create("room1")
except VideoHubError as e:
print(e)
Project Structure
videohub/
│
├── client.py
├── config.py
├── constants.py
├── exceptions.py
├── http.py
│
├── services/
│ ├── auth.py
│ ├── rooms.py
│ ├── calls.py
│ └── admin.py
│
└── utils/
└── validators.py
Documentation
Full API documentation is available at:
https://docs.videohub.askjitendra.com
Contributing
Contributions are welcome!
- Fork the repository
- Create a new branch
- Submit a pull request
Reporting Issues
If you encounter a bug or want to request a feature, please open an issue:
https://github.com/letscms/videohub-python/issues
License
This project is licensed under the MIT License.
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
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 videohub_python-1.1.1.tar.gz.
File metadata
- Download URL: videohub_python-1.1.1.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e89b6d7ba46c5111d7bd8e5fdb21dbd03a73b7cc0fc007c1389e9ffbf134156c
|
|
| MD5 |
6168c840e619e3a231dda4ef9604883b
|
|
| BLAKE2b-256 |
471c4e96eb6a0d819a0ed2c306e77ba2a57db7783772abbd78893bfaf26538e3
|
File details
Details for the file videohub_python-1.1.1-py3-none-any.whl.
File metadata
- Download URL: videohub_python-1.1.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d44b8ed83f3b9128589b75f075db5b381ddfbaf18339399dfb5d0d77ed128afc
|
|
| MD5 |
c582b6753a42a4b7ac36e29dc63c026c
|
|
| BLAKE2b-256 |
ec099ac5866e3a7f0451720737a15cf9fa52583eb1affee1d6cbbbab973e5d76
|