Metadata-Version: 2.4
Name: videohub-python
Version: 1.1.3
Summary: Official VideoHub Python SDK for building video, audio, and screen sharing applications.
Author-email: Letscms <support@videohub.dev>
License: <<<<<<< HEAD
        MIT License
        
        Copyright (c) 2026 Letscms
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
        
Project-URL: Homepage, https://videohub.dev
Project-URL: Documentation, https://docs.videohub.dev
Project-URL: Repository, https://github.com/letscms/videohub-python
Project-URL: Issues, https://github.com/letscms/videohub-python/issues
Keywords: videohub,video sdk,webrtc,video calling,audio rooms,screen sharing,pk battle
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.25
Dynamic: license-file

# VideoHub Python SDK

Official Python SDK for VideoHub – build video calls, audio rooms, and real-time communication applications with ease.

VideoHub enables developers to integrate video conferencing, audio rooms, real-time chat, AI chatbot integration, screen sharing, and real-time communication into their applications using simple APIs.

---

## Installation

Install from PyPI:

```bash
pip install videohub-python
```

---

## Requirements

* Python 3.9+
* Python 3.11+ (recommended)
* VideoHub API Key
* App credentials:

  * App ID
  * App Secret
  * App Platform (`web`, `android`, `ios`)
  * App Identifier (domain or package name)

---

## Quick Start

```python
from videohub.client import Client

client = Client(
    api_key="vhub_live_xxxxxxxxx",
    app_id="your_app_id",
    app_secret="your_app_secret",
    app_platform="web",
    app_identifier="example.com"
)

# Create a room
client.rooms.create(
    room_name="my-room",
    max_participants=5
)

# Generate a host token
token = client.rooms.host_token("my-room")

print(token)
```

---

## Authentication

All API 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               |

---

## Features

* Video calling
* Audio rooms
* Screen sharing
* Room management
* Call management
* Admin APIs
* Secure authentication

---

## Examples

### Create Room

```python
room = client.rooms.create(
    room_name="demo-room",
    max_participants=5
)

print(room)
```

---

### Generate Room Token

```python
token = client.rooms.host_token("demo-room")
print(token)
```

---

## Error Handling

The SDK raises structured exceptions for API errors:

```python
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.dev

---

## Contributing

Contributions are welcome.

1. Fork the repository
2. Create a feature branch (`git checkout -b feature-name`)
3. Commit your changes (`git commit -m "Add feature"`)
4. Push to the branch (`git push origin feature-name`)
5. Open 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.
