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.
Metadata
Release files for streamlit-folium 0.27.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| streamlit_folium-0.27.4.tar.gz | 535.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_folium-0.27.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / streamlit_folium-0.27.4.tar.gz
| Download URL | streamlit_folium-0.27.4.tar.gz |
|---|---|
| Size | 535.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff9572ed74d04164b391f59caad4ab022cbca99f27bbafe88dbd7251e4679598
|
|
BLAKE2b-256 checksum How to use checksums |
f74c3874663b7db06c7e354ec488a884ccc07cc013daf9b6595bfe0333f7509f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}
|
Release files / streamlit_folium-0.27.4-py3-none-any.whl
| Download URL | streamlit_folium-0.27.4-py3-none-any.whl |
|---|---|
| Size | 536.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0214076ff10e9417a5c1079920adbe91e35b9a844b3f45ee9c15277b91c7cb08
|
|
BLAKE2b-256 checksum How to use checksums |
bd44ebf8b1a1ae14184d4c3d09bde4450933198152b4cbf21a425dccc69cd7b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}
|
Security for streamlit-folium 0.27.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.