How to share Python apps (Dash, Streamlit, etc.) without deploying them

How to share Python apps (Dash, Streamlit, etc.) without deploying them

There is a magical feature in uv, which allows you run remote scripts hosted online. As a consequence, you can have the app code in a file online, and simply run:

uv run https://example.com/my_script.py        

Then uv will:

🔵 Temporarily download the script

🔵 Create a virtual environment using the inline metadata (Python version and package dependencies)

🔵 Activate the environment

🔵 Run the Python code

Even with a non-technical audience, you can guide them to install uv (30 seconds), and share the uv run... command.

You can keep updating the online version, and they can periodically check the changes.

You can include data files (also online), by slightly modifying your code. For example:

import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/user/repo/data.csv")        



Uv seems to be or at least to become the new Swiss army knife for Python development. I guess I'll have to take a deeper look into it.

Wow thats cool. A lot simpler than running locally and sharing with ngrok.

To view or add a comment, sign in

More articles by Elias Dabbas

Others also viewed

Explore content categories