Skip to main content

A tool to help you expose your non gradio app using gradio

Project description

Gradio Tunneling

English | 简体中文

A tunneling tool that provides reverse proxy functionality for non-Gradio web services, allowing you to expose your local services to the internet with customizable subdomains.

https://github.com/arkohut/gradio-tunneling/assets/39525455/f38b7db2-517b-4e30-b15e-8787485095d0

Setup

pip install gradio-tunneling

Run tunnel

You can specify the port in two ways:

gradio-tun 7860 [--sd your-subdomain]
# or
gradio-tun --port 7860 [--sd your-subdomain]
  • PORT or --port PORT: Specify the port number for the tunnel
  • --sd: (Optional) Specify a custom subdomain. Note: For security reasons, your input will be converted into a unique string. Using the same --sd value will always generate the same unique string.

Examples:

# Using positional port argument
gradio-tun 7860

# Using --port flag
gradio-tun --port 7860

# With custom subdomain
gradio-tun 7860 --sd mycustomsubdomain
# This will generate a URL with a unique string (e.g., abc123def...)
# Using "mycustomsubdomain" again will generate the same unique string

About Custom Subdomains

When you use the --sd option:

  • The subdomain you provide won't be used directly in the URL
  • Instead, it will be converted into a unique string for security
  • If you use the same --sd value later, you'll get the same unique string
  • This helps you get consistent URLs while maintaining security

For example, if you always use --sd myapp, you'll get the same unique subdomain each time, making your URL predictable for your users.

Important Note

The generated tunnel URL will expire after 72 hours. After expiration, you'll need to restart the tunnel to get a new URL. If you're using a custom subdomain with --sd, using the same value will generate the same subdomain in the new URL.

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

gradio_tunneling-0.9.0.tar.gz (22.9 MB view details)

Uploaded Source

Built Distribution

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

gradio_tunneling-0.9.0-py3-none-any.whl (23.0 MB view details)

Uploaded Python 3

File details

Details for the file gradio_tunneling-0.9.0.tar.gz.

File metadata

  • Download URL: gradio_tunneling-0.9.0.tar.gz
  • Upload date:
  • Size: 22.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gradio_tunneling-0.9.0.tar.gz
Algorithm Hash digest
SHA256 459eda3584677c29498e2b798455ad59becf31aa9f78a89e8818ac4654ae9a31
MD5 e2e08d9b19b8b5d66accbe40fe81b2ca
BLAKE2b-256 db4f8e7b53b186e5a2e00614a227f4756f39f9bec9742db87f59e0fcd7ee38a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradio_tunneling-0.9.0.tar.gz:

Publisher: release.yml on arkohut/gradio-tunneling

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

File details

Details for the file gradio_tunneling-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gradio_tunneling-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12bf0b8c3eaef408503ffa81421e7ce802f0373b5c21dfc18ada962e2103a636
MD5 16ae4f10d8fa3d79513b9d9f27a732ad
BLAKE2b-256 d04b11e385337cae194b78418db2bc45a0df3c980f52779b18760f243244b201

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradio_tunneling-0.9.0-py3-none-any.whl:

Publisher: release.yml on arkohut/gradio-tunneling

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