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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b3fff15fdf370e33420f4ee7612cc537d95950ee7242c15e2d7563116ec77477
|
|
MD5 |
d855f9c70ccab1cf8dd695bc16c655f7
|
|
BLAKE2b-256 |
3167e91de93effe0497f147f3a7870bd5e1d6cf16985c2297df052ecfc6c5f3b
|
Provenance
The following attestation bundles were made for gradio_tunneling-0.7.0.tar.gz
:
Publisher:
release.yml
on arkohut/gradio-tunneling
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gradio_tunneling-0.7.0.tar.gz
-
Subject digest:
b3fff15fdf370e33420f4ee7612cc537d95950ee7242c15e2d7563116ec77477
- Sigstore transparency entry: 161724765
- Sigstore integration time:
-
Permalink:
arkohut/gradio-tunneling@ba3811cc9ac0809a7f2f4a9a86ff00d35fa9da33
-
Branch / Tag:
refs/tags/v0.7.0
- Owner: https://github.com/arkohut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@ba3811cc9ac0809a7f2f4a9a86ff00d35fa9da33
-
Trigger Event:
push
-
Statement type:
File details
Details for the file gradio_tunneling-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: gradio_tunneling-0.7.0-py3-none-any.whl
- Upload date:
- Size: 26.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
083cdde983d50df0fe70e95161d2ce70d4883210e8b62c201c567191a2fa8c61
|
|
MD5 |
0e5af550c73627d098d36224106faee4
|
|
BLAKE2b-256 |
baa6d81d3160807dff682701dcbb3fc8d7a81ee534a018e565ca851d45651cb4
|
Provenance
The following attestation bundles were made for gradio_tunneling-0.7.0-py3-none-any.whl
:
Publisher:
release.yml
on arkohut/gradio-tunneling
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gradio_tunneling-0.7.0-py3-none-any.whl
-
Subject digest:
083cdde983d50df0fe70e95161d2ce70d4883210e8b62c201c567191a2fa8c61
- Sigstore transparency entry: 161724766
- Sigstore integration time:
-
Permalink:
arkohut/gradio-tunneling@ba3811cc9ac0809a7f2f4a9a86ff00d35fa9da33
-
Branch / Tag:
refs/tags/v0.7.0
- Owner: https://github.com/arkohut
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
release.yml@ba3811cc9ac0809a7f2f4a9a86ff00d35fa9da33
-
Trigger Event:
push
-
Statement type: