Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gui_new-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gui_new-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for gui_new-0.1.0.tar.gz
Algorithm Hash digest
SHA256 38cca889e82c6d9bc8114e10210da05b9ab3f8c4031c6747e640eaa493ea5755
MD5 5a90cfd84fe5062b1233ae90d735c6ec
BLAKE2b-256 6d6fc789e8654d923db168e14bfa4fb540fba276e42404b1b1909c8577b83f89

See more details on using hashes here.

Provenance

The following attestation bundles were made for gui_new-0.1.0.tar.gz:

Publisher: publish-pypi.yml on stratuslabs/gui-new

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for gui_new-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f8ef24a6a3b2bab41367305f0c7cb90549dd1e73262fec976f18190ca1a70f1
MD5 fd59a36dc3e88cac174996cff9d31c7a
BLAKE2b-256 bf5250da1cdc76d6c3f8c647865385fd2b0b78a1fd91dfd7d8f10554abcfa3ac

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page