arnaudmiribel / streamlit-extras

Discover, try, install and share Streamlit re-usable bits we call "extras"!
https://extras.streamlit.app
Apache License 2.0
715 stars 123 forks source link

Add stlite sanbox for safe code execution #158

Closed lukasmasuch closed 1 year ago

lukasmasuch commented 1 year ago

This PR adds an extra that allows you to execute untrusted Streamlit code inside the user's web browser by using stlite instead of the App server. This is useful for apps that generate and execute Streamlit (or Python) code at runtime based on some user instructions. Doing this inside the main Streamlit app would be unsafe since the user could execute arbitrary code on the server.