Cloudflared Context Manager
Simple context manager to create a Cloudflared tunnel for a localhost port of choice.
Minimal example on how to use this package with Gradio:
import gradio as gr
import cloudflared_tunnel
with gr.Blocks() as demo:
with gr.Column():
with gr.Row():
input_text = gr.Textbox(lines=10, label="Input")
output_text = gr.Textbox(lines=10, label="Output")
submit_button = gr.Button(value="Echo")
submit_button.click(lambda x: x, inputs=input_text, outputs=output_text)
if __name__ == "__main__":
with cloudflared_tunnel.run() as port:
demo.launch(show_api=False, server_port=port)
Acknowledgements
This project is derived from flask-cloudflared, which in turn is based on flask-ngrok.
Metadata
Release files for cloudflared-tunnel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloudflared_tunnel-0.1.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloudflared_tunnel-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / cloudflared_tunnel-0.1.0.tar.gz
| Download URL | cloudflared_tunnel-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07dd00bd8f87f09031e79855f552c530a66e625c27589eea00545dc24cd8ba79
|
|
BLAKE2b-256 checksum How to use checksums |
bd2775908adbf1d828923af1f05eb357fe5380a9a827398a4866e4d54faacbbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / cloudflared_tunnel-0.1.0-py3-none-any.whl
| Download URL | cloudflared_tunnel-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9911f2163b464b1db8610b2baab24c30c45c31ff917a1e46068c3798f6403a8f
|
|
BLAKE2b-256 checksum How to use checksums |
ef7d898bcc65b4c2ca3fb1c1c1d365a75e838c99fa14990884de3db3d135434a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|