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.

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.27.4.tar.gz (535.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_folium-0.27.4-py3-none-any.whl (536.9 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_folium-0.27.4.tar.gz.

File metadata

  • Download URL: streamlit_folium-0.27.4.tar.gz
  • Upload date:
  • Size: 535.3 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for streamlit_folium-0.27.4.tar.gz
Algorithm Hash digest
SHA256 ff9572ed74d04164b391f59caad4ab022cbca99f27bbafe88dbd7251e4679598
MD5 a5bec1fe0c81f40be4a7c79105bbe1a2
BLAKE2b-256 f74c3874663b7db06c7e354ec488a884ccc07cc013daf9b6595bfe0333f7509f

See more details on using hashes here.

File details

Details for the file streamlit_folium-0.27.4-py3-none-any.whl.

File metadata

  • Download URL: streamlit_folium-0.27.4-py3-none-any.whl
  • Upload date:
  • Size: 536.9 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for streamlit_folium-0.27.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0214076ff10e9417a5c1079920adbe91e35b9a844b3f45ee9c15277b91c7cb08
MD5 07713a4fbd4ded2a0ca7ea9e7530a701
BLAKE2b-256 bd44ebf8b1a1ae14184d4c3d09bde4450933198152b4cbf21a425dccc69cd7b7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.27.4 This release

2 files

0.27.3

2 files

0.27.2

2 files

0.27.1

2 files

0.27.0

2 files

0.26.2

2 files

0.26.1

2 files

0.26.0

2 files

0.25.3

2 files

0.25.2

2 files

0.25.1

2 files

0.25.0

2 files

0.24.1

2 files

0.24.0

2 files

0.23.2

2 files

0.23.1

2 files

0.23.0

2 files

0.22.1

2 files

0.22.0

2 files

0.21.1

2 files

0.21.0

2 files

0.20.1

2 files

0.20.0

2 files

0.19.1

2 files

0.19.0

2 files

0.18.1

2 files

0.18.0

2 files

0.17.4

2 files

0.17.3

2 files

0.17.2

2 files

0.17.1

2 files

0.17.0

2 files

0.16.0

2 files

0.15.1

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.15

2 files

0.6.14

2 files

0.6.13

2 files

0.6.12

2 files

0.6.11

2 files

0.6.10

2 files

0.6.9

2 files

0.6.8

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page