Skip to main content

streamlit-folium: geospatial made easy in Streamlit!

Run tests each PR

Open 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 on
  • folium_static(): takes a folium.Map, folium.Figure, or branca.element.Figure object 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 newer st_folium() function, but is great for testing to ensure you have the correct Folium syntax.

Example

PyCafe logo Run and edit this example in Py.Cafe

streamlit_folium example

Contributing

See CONTRIBUTING.md for more details.

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)

Source distribution for streamlit-folium 0.27.4
File Size Uploaded
streamlit_folium-0.27.4.tar.gz 535.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-folium 0.27.4
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

This release

0.27.4 This release

2 release files

0.27.3

2 release files

0.27.2

2 release files

0.27.1

2 release files

0.27.0

2 release files

0.26.2

2 release files

0.25.3

2 release files

0.25.2

2 release files

0.25.0

2 release files

0.24.1

2 release files

0.24.0

2 release files

0.23.2

2 release files

0.23.1

2 release files

0.23.0

2 release files

0.22.1

2 release files

0.22.0

2 release files

0.21.1

2 release files

0.21.0

2 release files

0.20.1

2 release files

0.20.0

2 release files

0.19.1

2 release files

0.18.0

2 release files

0.17.4

2 release files

0.16.0

2 release files

0.14.0

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.15

2 release files

0.6.13

2 release files

0.6.12

2 release files

0.6.11

2 release files

0.6.10

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page