Skip to main content

Python bindings for MapLibre GL JS

Project description

MapLibre for Python

Release pypi Conda recipe Conda package Build status License MapLibre GL JS

MapLibre for Python provides Python bindings for MapLibre GL JS. Furthermore, Deck.GL Layers can be mixed with MapLibre Layers.

It integrates seamlessly into Shiny for Python, Marimo, Jupyter and JupyterLite.

Join the conversation

Join us on Slack.

Installation

# Stable
pip install maplibre # minimal

pip install "maplibre[shiny]" # shiny bindings

pip install "maplibre[ipywidget]" # marimo and jupyter bindings

pip install "maplibre[all]"

uv add maplibre

uv add "maplibre[all]"

# Unstable
pip install git+https://github.com/eoda-dev/py-maplibregl@dev

pip install "maplibre[all] @ git+https://github.com/eoda-dev/py-maplibregl@dev"

uv add "git+https://github.com/eoda-dev/py-maplibregl@dev[all]"

# Conda
conda install -c conda-forge maplibre

Quickstart

from maplibre import Map, MapOptions

m = Map(MapOptions(center=(-123.1256, 49.24658), zoom=9))
m.save(preview=True)

Documentation

Development

Python

poetry install

poetry run pytest

poetry run pytest --ignore=maplibre/ipywidget.py --doctest-modules maplibre

JavaScript

See maplibre-bindings

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

maplibre-0.3.5.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

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

maplibre-0.3.5-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file maplibre-0.3.5.tar.gz.

File metadata

  • Download URL: maplibre-0.3.5.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-139-generic

File hashes

Hashes for maplibre-0.3.5.tar.gz
Algorithm Hash digest
SHA256 00b02f7f11abe0f9b7053a3528debd70c25d01718bbd9fcf0750961e167aa4ce
MD5 b9d0e3e8734104e06f9b1e0f06e6101b
BLAKE2b-256 cc0b06afcd6fc90456a89da5ac2e0f9c9d94665fcc9b8720973fca0c784a3bd4

See more details on using hashes here.

File details

Details for the file maplibre-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: maplibre-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-139-generic

File hashes

Hashes for maplibre-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bbff166f6569b05e92bfb9e3cac628f6f7d32463dae1ff4d335c372f2306b3f7
MD5 f4903bfda58d956e5477dd8080995ef6
BLAKE2b-256 91eb45b75f12bcbd4866160749d97d47e69921d4e3d5ffd800a3b7c092efa93a

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