Metadata-Version: 2.4
Name: vaif-client
Version: 0.1.0
Summary: Official VAIF Studio client library for Python
Project-URL: Homepage, https://vaif.studio
Project-URL: Documentation, https://vaif.studio/docs/sdk/python
Project-URL: Repository, https://github.com/vaifllc/vaif-studio
Project-URL: Issues, https://github.com/vaifllc/vaif-studio/issues
Author-email: VAIF Technologies <support@vaif.studio>
License-Expression: MIT
Keywords: api,backend,database,realtime,supabase-alternative,vaif,vaif-studio
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
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 :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.8
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: websockets>=12.0
Provides-Extra: dev
Requires-Dist: mypy>=1.0.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# VAIF Studio Python SDK

The official Python client library for VAIF Studio.

## Installation

```bash
pip install vaif-client
```

## Quick Start

```python
from vaif import create_client

# Initialize the client
vaif = create_client(
    project_id="your-project-id",
    api_key="your-api-key"
)

# Query data
users = await vaif.db.from_("users").select("*").execute()

# Authentication
result = await vaif.auth.sign_in_with_password(
    email="user@example.com",
    password="password123"
)

# File storage
file = await vaif.storage.bucket("avatars").upload("avatar.png", data)

# Real-time subscriptions
channel = vaif.realtime.channel("room1")
await channel.on("broadcast", {"event": "message"}, lambda msg: print(msg))
await channel.subscribe()

# AI Copilot
schema = await vaif.ai.generate_schema(
    prompt="Create a blog with posts and comments",
    format="sql"
)
```

## Features

- **Database**: Type-safe query builder with PostgreSQL support
- **Authentication**: Email, OAuth, magic links, and MFA
- **Storage**: S3-compatible file storage with CDN
- **Real-time**: WebSocket subscriptions for live updates
- **AI Copilot**: Natural language code generation

## Documentation

Visit [vaif.studio/docs/sdk/python](https://vaif.studio/docs/sdk/python) for full documentation.

## License

MIT
