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.8.1.tar.gz (26.4 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.8.1-py3-none-any.whl (26.6 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gradio_tunneling-0.8.1.tar.gz
Algorithm Hash digest
SHA256 e8be5927a03082014b051760beeb4b444d4a5ee80f64248df6845aa48ea8813a
MD5 2543e59a2f71d608620d2e19701f9ff8
BLAKE2b-256 0dc87b14f9ed043d96638dfbb93de83a98e922860dad8e35feb7550cb1f8cc98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for gradio_tunneling-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f158bfc144278b0d61478e06809a5c75935a5e9c74391d30e221d298fdb67250
MD5 538e6ee642f64ee4282fe237c53d1472
BLAKE2b-256 64ccbb895446334929e233e7da65a57a3ca4c242e85efe6515256306d7b3aef8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gradio_tunneling-0.8.1-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