Metadata-Version: 2.4
Name: gui-new
Version: 0.1.0
Summary: HTML in, URL out. Create shareable HTML canvases via gui.new
Project-URL: Homepage, https://gui.new
Project-URL: Documentation, https://gui.new/docs
Author: Stratus Labs
License-Expression: MIT
License-File: LICENSE
Keywords: canvas,gui,html,share,ui
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: httpx>=0.24
Description-Content-Type: text/markdown

# gui-new

HTML in, URL out. Python SDK for [gui.new](https://gui.new).

## Install

```bash
pip install gui-new
```

## Quick Start

```python
import gui_new

canvas = gui_new.create("<h1>Hello World</h1>")
print(canvas.url)  # https://gui.new/abc123
```

## Usage

```python
# Create
canvas = gui_new.create(
    html="<h1 style='color:red'>Alert</h1>",
    title="My Dashboard"
)

# Update
gui_new.update(canvas.id, "<h1>Updated</h1>", canvas.edit_token)

# Extend expiry (+24h)
gui_new.extend(canvas.id, canvas.edit_token)

# Delete
gui_new.delete(canvas.id, canvas.edit_token)
```

## Pro API Key

```bash
export GUI_NEW_API_KEY=your_key
```

```python
# Automatically uses the env var
canvas = gui_new.create("<h1>Pro canvas</h1>")
```

## Links

- [gui.new](https://gui.new)
- [API Docs](https://gui.new/docs)
- [npm SDK](https://www.npmjs.com/package/gui-new)
