Render Folium objects in Streamlit
Project description
streamlit-folium: geospatial made easy in Streamlit!
streamlit-folium integrates two great open-source projects in the Python ecosystem: Streamlit and Folium!
Installation
pip install streamlit-folium
or
conda install -c conda-forge streamlit-folium
Usage
Currently, there are two functions defined:
st_folium(): a bi-directional Component, taking a Folium/Branca object and plotting to the Streamlit app. Upon mount/interaction with the Streamlit app,st_folium()returns a Dict with selected information including the bounding box and items clicked onfolium_static(): takes afolium.Map,folium.Figure, orbranca.element.Figureobject and displays it in a Streamlit app using the_repr_html()representation created in Folium. This function should be a strict subset the of functionality of the newerst_folium()function, but is great for testing to ensure you have the correct Folium syntax.
Example
Run and edit this example in Py.Cafe
Contributing
See CONTRIBUTING.md for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit_folium-0.26.1.tar.gz
(521.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_folium-0.26.1.tar.gz.
File metadata
- Download URL: streamlit_folium-0.26.1.tar.gz
- Upload date:
- Size: 521.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2bcc9fe3d16801d7f29f1309801145f6a3fedebb23f1950bc920b058b61b072
|
|
| MD5 |
9dbe377180d49fbedb1f78ed466fcd71
|
|
| BLAKE2b-256 |
5660f421acddc2de07624c4ade38c68fa1cbd811bd1e4dd00f2b2a37329fc73b
|
File details
Details for the file streamlit_folium-0.26.1-py3-none-any.whl.
File metadata
- Download URL: streamlit_folium-0.26.1-py3-none-any.whl
- Upload date:
- Size: 523.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81c369b89475fa13cb95a5bb7ea548d8aee1ea081b25b03df1e7b057d186c77d
|
|
| MD5 |
fdb98061efeb5495df6920beb6030a49
|
|
| BLAKE2b-256 |
36cc8c94bb963112b3017a11835fe99f58b755865d0b4ffdfae9eac0292f1021
|