From dfc92b568780160466d023da2f5258a38cd985cf Mon Sep 17 00:00:00 2001 From: balugans Date: Wed, 21 Aug 2024 15:22:25 -0700 Subject: [PATCH] fix for missing streamlit-folium package without streamlit-folium, there is error when running streamlit. This fix ensures streamlit-folium package is installed by adding it to pyproject.toml file --- poetry.lock | 65 +++++++++++++++++++++++++++++++++++++++++++++++++- pyproject.toml | 1 + 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index c784b62..fca11c5 100644 --- a/poetry.lock +++ b/poetry.lock @@ -221,6 +221,20 @@ files = [ {file = "blinker-1.8.2.tar.gz", hash = "sha256:8f77b09d3bf7c795e969e9486f39c2c5e9c39d4ee07424be2bc594ece9642d83"}, ] +[[package]] +name = "branca" +version = "0.7.2" +description = "Generate complex HTML+JS pages with Python" +optional = false +python-versions = ">=3.7" +files = [ + {file = "branca-0.7.2-py3-none-any.whl", hash = "sha256:853a359c34d08fd06498be762d8be9932750db4049cac11e25dd6f23562e25c2"}, + {file = "branca-0.7.2.tar.gz", hash = "sha256:ca4c94643ef31b819987ca5bd19c6009ea17b440baa3aac04628545f7a4da023"}, +] + +[package.dependencies] +jinja2 = ">=3" + [[package]] name = "brotli" version = "1.1.0" @@ -867,6 +881,27 @@ files = [ {file = "flatbuffers-24.3.25.tar.gz", hash = "sha256:de2ec5b203f21441716617f38443e0a8ebf3d25bf0d9c0bb0ce68fa00ad546a4"}, ] +[[package]] +name = "folium" +version = "0.17.0" +description = "Make beautiful maps with Leaflet.js & Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "folium-0.17.0-py2.py3-none-any.whl", hash = "sha256:14210d054e9afad6ebac037495508297d78805fcfa16f859fdee10bb7f85c2c1"}, + {file = "folium-0.17.0.tar.gz", hash = "sha256:48385df9a3f6ceca23647c2e8d87850c8a6e05b40db63266e7b8c6d2d734d4c6"}, +] + +[package.dependencies] +branca = ">=0.6.0" +jinja2 = ">=2.9" +numpy = "*" +requests = "*" +xyzservices = "*" + +[package.extras] +testing = ["pytest"] + [[package]] name = "fonttools" version = "4.53.1" @@ -2782,6 +2817,23 @@ watchdog = {version = ">=2.1.5,<5", markers = "platform_system != \"Darwin\""} [package.extras] snowflake = ["snowflake-connector-python (>=2.8.0)", "snowflake-snowpark-python (>=0.9.0)"] +[[package]] +name = "streamlit-folium" +version = "0.22.0" +description = "Render Folium objects in Streamlit" +optional = false +python-versions = ">=3.8" +files = [ + {file = "streamlit_folium-0.22.0-py3-none-any.whl", hash = "sha256:ee91553e6a6db285f6e6c61e047f1374d9428be1857332a36a552911dd22b7d0"}, + {file = "streamlit_folium-0.22.0.tar.gz", hash = "sha256:9f2593507b53e16fa90b41dc7d1301d4327767a7787278843d18a91642c83682"}, +] + +[package.dependencies] +branca = "*" +folium = ">=0.13,<0.15.0 || >0.15.0" +jinja2 = "*" +streamlit = ">=1.13.0" + [[package]] name = "tenacity" version = "8.5.0" @@ -3004,6 +3056,17 @@ MarkupSafe = ">=2.1.1" [package.extras] watchdog = ["watchdog (>=2.3)"] +[[package]] +name = "xyzservices" +version = "2024.6.0" +description = "Source of XYZ tiles providers" +optional = false +python-versions = ">=3.8" +files = [ + {file = "xyzservices-2024.6.0-py3-none-any.whl", hash = "sha256:fecb2508f0f2b71c819aecf5df2c03cef001c56a4b49302e640f3b34710d25e4"}, + {file = "xyzservices-2024.6.0.tar.gz", hash = "sha256:58c1bdab4257d2551b9ef91cd48571f77b7c4d2bc45bf5e3c05ac97b3a4d7282"}, +] + [[package]] name = "yarl" version = "1.9.4" @@ -3125,4 +3188,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = ">3.9.7" -content-hash = "920b521b9f95906941fcfbf73825e8d0342dce770e911f3f3e13efc49f150aa6" +content-hash = "578ee902e8b285d4a7eba125d37115e981cf53ae43a68c638441dd76cc1d297f" diff --git a/pyproject.toml b/pyproject.toml index 42127aa..7b65970 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ email-validator = "2.1.1" openai = "^1.30.5" curl-cffi = "^0.7.1" streamlit = "^1.35.0" +streamlit-folium = "^0.22.0" matplotlib = "3.9.0" seaborn = "^0.13.2" numpy = "^1.26.4"