# Octavia CMS SDK (Python)

## Get API Key
- Sign up: https://octaviatech.app

## Installation
```bash
pip install octavia-cms-sdk
```

## Quick Start
```python
from octavia_cms_sdk import CMS

cms = CMS.init("your-api-key", timeoutMs=10000, throwOnError=False)

res = cms.article.create({
    "mainTitle": {"en": "Hello"},
    "body": {"en": "Content"},
    "category": "CATEGORY_ID",
    "author": "AUTHOR_ID",
})

if not res["ok"]:
    raise RuntimeError(res["error"]["message"])

print(res["data"])
```

## Query Example
```python
res = cms.article.getAll(query={
    "lang": ["en", "fa"],
    "page": 1,
    "limit": 10,
    "sort": "desc",
})
```

## Unified Response
```python
{
  "ok": bool,
  "data": object | None,
  "error": {"message": str, "statusCode": int} | None,
  "meta": {"pagination": object} | None
}
```

