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.7.0.tar.gz (26.4 MB view details)

Uploaded Source

Built Distribution

gradio_tunneling-0.7.0-py3-none-any.whl (26.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gradio_tunneling-0.7.0.tar.gz
  • Upload date:
  • Size: 26.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gradio_tunneling-0.7.0.tar.gz
Algorithm Hash digest
SHA256 b3fff15fdf370e33420f4ee7612cc537d95950ee7242c15e2d7563116ec77477
MD5 d855f9c70ccab1cf8dd695bc16c655f7
BLAKE2b-256 3167e91de93effe0497f147f3a7870bd5e1d6cf16985c2297df052ecfc6c5f3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradio_tunneling-0.7.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.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gradio_tunneling-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 083cdde983d50df0fe70e95161d2ce70d4883210e8b62c201c567191a2fa8c61
MD5 0e5af550c73627d098d36224106faee4
BLAKE2b-256 baa6d81d3160807dff682701dcbb3fc8d7a81ee534a018e565ca851d45651cb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradio_tunneling-0.7.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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page