Metadata-Version: 2.4
Name: siteme
Version: 0.1.1
Summary: Server-side Python client for the SiteMe Partner API
Author-email: Pathlight Ventures LLC <hello@sitemeai.com>
License-Expression: MIT
Project-URL: Homepage, https://siteme.ai/developers
Project-URL: Repository, https://github.com/SiteMeAi/siteme
Project-URL: Documentation, https://github.com/SiteMeAi/siteme/blob/main/sdks/README.md
Keywords: siteme,website,api
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# siteme

Server-side Python client for the SiteMe Partner API.

**Full usage guide (JS, Python, REST, domains, pricing):** [../README.md](../README.md)

Do not ship API keys to browsers.

```python
import os
from siteme import SiteMe

siteme = SiteMe(api_key=os.environ["SITEME_API_KEY"])
site = siteme.sites.create(
    business_name="Acme Dental",
    customer_brief="Family dentistry in Austin. Bookings, insurance, two locations.",
    output={"look": "standard"},
    slug="acme-dental",
)
ready = siteme.sites.wait(site["id"])
```

```bash
pip install siteme
```

From this repo: `pip install -e ./sdks/python`

Open the hosted editor from a session minted on the server:

```python
session = siteme.sites.create_embed_session(
    ready["id"],
    theme={"primary": "#0f766e", "mode": "light"},
)
# hand session["embed_url"] to your frontend / @siteme/editor
```

Editor guide: [EDITOR.md](../EDITOR.md)
