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.expose_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.2.0.tar.gz (12.6 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.2.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for godemo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 db2d6fdf44649b631af9fdafef998be0825a395f53b5c753d1c577555ebd2bf8
MD5 a341c7aa2cf98160938757038e003ab7
BLAKE2b-256 bcbd136d2ccf9310afbd844db856f448587d781e320bf52c3adcea4226d515e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for godemo-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: godemo-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d84d267fe8e7712d3ef1276e09dd47791d7a9407cd20cad248947fe5c79f628
MD5 09e50011db8bb3f033b4c04b2164c7c8
BLAKE2b-256 f5692399d14c6d55207acbdae817f96e85c77732d1bb118578209ae014bdc2df

See more details on using hashes here.

Provenance

The following attestation bundles were made for godemo-0.2.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