eodaGmbH / py-maplibregl

Python bindings for MapLibre GL JS
https://eodagmbh.github.io/py-maplibregl/
MIT License
27 stars 2 forks source link

Move from Pydantic to dataclass > Support Pydantic v1 #35

Open crazycapivara opened 5 months ago

crazycapivara commented 5 months ago

Because Pyodide ships with an old version of pydantic, it could make sense to switch to dataclass in order to make examples work in shinylive.

crazycapivara commented 1 week ago

May check if model_dump method is available. If not add it by using json method of pydantic v1

crazycapivara commented 2 hours ago

Not needed anymore. Latest version of Shiny Live supports pydantic > 2