HTML in, URL out. Create shareable HTML canvases via gui.new
Project description
gui-new
HTML in, URL out. Python SDK for gui.new.
Install
pip install gui-new
Quick Start
import gui_new
canvas = gui_new.create("<h1>Hello World</h1>")
print(canvas.url) # https://gui.new/abc123
Usage
# 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
export GUI_NEW_API_KEY=your_key
# Automatically uses the env var
canvas = gui_new.create("<h1>Pro canvas</h1>")
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gui_new-0.1.0.tar.gz.
File metadata
- Download URL: gui_new-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38cca889e82c6d9bc8114e10210da05b9ab3f8c4031c6747e640eaa493ea5755
|
|
| MD5 |
5a90cfd84fe5062b1233ae90d735c6ec
|
|
| BLAKE2b-256 |
6d6fc789e8654d923db168e14bfa4fb540fba276e42404b1b1909c8577b83f89
|
Provenance
The following attestation bundles were made for gui_new-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on stratuslabs/gui-new
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gui_new-0.1.0.tar.gz -
Subject digest:
38cca889e82c6d9bc8114e10210da05b9ab3f8c4031c6747e640eaa493ea5755 - Sigstore transparency entry: 1056988959
- Sigstore integration time:
-
Permalink:
stratuslabs/gui-new@fe85d7d831eb732605f8be5d6078d47587a9d87b -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/stratuslabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@fe85d7d831eb732605f8be5d6078d47587a9d87b -
Trigger Event:
push
-
Statement type:
File details
Details for the file gui_new-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gui_new-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f8ef24a6a3b2bab41367305f0c7cb90549dd1e73262fec976f18190ca1a70f1
|
|
| MD5 |
fd59a36dc3e88cac174996cff9d31c7a
|
|
| BLAKE2b-256 |
bf5250da1cdc76d6c3f8c647865385fd2b0b78a1fd91dfd7d8f10554abcfa3ac
|
Provenance
The following attestation bundles were made for gui_new-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on stratuslabs/gui-new
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gui_new-0.1.0-py3-none-any.whl -
Subject digest:
6f8ef24a6a3b2bab41367305f0c7cb90549dd1e73262fec976f18190ca1a70f1 - Sigstore transparency entry: 1056988961
- Sigstore integration time:
-
Permalink:
stratuslabs/gui-new@fe85d7d831eb732605f8be5d6078d47587a9d87b -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/stratuslabs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@fe85d7d831eb732605f8be5d6078d47587a9d87b -
Trigger Event:
push
-
Statement type: