Skip to main content

Expose local HTTP/WebSocket services via Godemo gateway.

Project description

godemo Python SDK

Install and Run

pip install godemo
godemo 3000

Code integration: expose a running port

import godemo

tunnel = godemo.expose(8000)
print(tunnel.public_url)
input("Press Enter to stop...")
tunnel.close()

Code integration: expose a FastAPI/Flask app

from fastapi import FastAPI
import godemo

app = FastAPI()

@app.get("/")
def root():
    return {"hello": "world"}

tunnel = godemo.share_app(app)
print(tunnel.public_url)

Environment variables

  • GODEMO_GATEWAY_URL -- override the default public gateway

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

godemo-0.3.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

godemo-0.3.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file godemo-0.3.0.tar.gz.

File metadata

  • Download URL: godemo-0.3.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for godemo-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c115223840d53b1c6bc00b2fb386d41a7a633bac1197aa8dd1c7b387c3dd2ce9
MD5 bf8b18926fd21d58cb05e562f5065a3e
BLAKE2b-256 5467dcf85307c9dab850a5407fe780da8e77f36672570be80a9f3a3c9bb33eae

See more details on using hashes here.

Provenance

The following attestation bundles were made for godemo-0.3.0.tar.gz:

Publisher: release.yml on bitxel/godemo

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

File details

Details for the file godemo-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: godemo-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for godemo-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd656b528b88c3b41ead9ed7a942f32762f2f9043e7d23b284711f57bd05a343
MD5 9780766507cbd02346aeb42f6d60e837
BLAKE2b-256 cd385368f1c2203f381705a8c5d13c2aa95cf6433cf87f985f93489faf211d7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for godemo-0.3.0-py3-none-any.whl:

Publisher: release.yml on bitxel/godemo

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