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.1.0.tar.gz (11.4 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.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for godemo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e2b4a6f672ebe25f57b32850c17f89d8cc0a85c0064ea9ee870405e11dcda407
MD5 ebf1ef99dc3d1bf2131af09dda4de58d
BLAKE2b-256 1c509fefcb6c807ce999935fcf6393464aa833a1d077f8f02a002882b3dad3f6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: godemo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d7a6e12ab75f2254b66a9fb16ff2ffd53a98774fb476ed78e726cf9ec72b10
MD5 c02a356cb51a99e115c858a67d5517c8
BLAKE2b-256 adb2e6f1e92ac2b01b1b75e5b258de857c52480f83251dff37b37ed6f7c4e251

See more details on using hashes here.

Provenance

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