Skip to main content

Render Folium objects in Streamlit

Project description

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.

Project 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.0.tar.gz (526.2 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.0-py3-none-any.whl (528.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit_folium-0.27.0.tar.gz
  • Upload date:
  • Size: 526.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.0.tar.gz
Algorithm Hash digest
SHA256 312ea4023504c1e81ceae1a472725eb429872fd91825ce23a0e3772dfca87c97
MD5 9be78f8260cf69e419ebe4323085d5c6
BLAKE2b-256 6acdd762458ca6bb1e5966e175702b26220c95482828d5f483c7612d8f09a45f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: streamlit_folium-0.27.0-py3-none-any.whl
  • Upload date:
  • Size: 528.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70c10c26f0453e2e480e157118815172ccd6f6f9718928ba5c45d99b9decda18
MD5 abf90829687cbc2f4e1ca3d5b6d05dcc
BLAKE2b-256 4c506db1f94e88a88a5ea2054d26b8bcb6d38d70072c6830b00c9dfb0176f60c

See more details on using hashes here.

Supported by

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