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.

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.4.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.4-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maplibre-0.3.4.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.4.tar.gz
Algorithm Hash digest
SHA256 0be6a40c1a89cd9a7608b829db53f055a07e30f37b7ba813d488ab905674a7b6
MD5 762a57fa28ea11770609829d6b79f1bc
BLAKE2b-256 8539b9aba326d97b77aeeb2a2c2011c4760548b3db641837317f19cb3edac786

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maplibre-0.3.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 09e7d7cb9c3d73da52a71dceb715a2320c168108cea23aa6f583544a0e1e6a7e
MD5 1610c38d21555b8074814215d048a261
BLAKE2b-256 dea73bf4b5ca5b6fad18070963f6669f4f011fc3661b8bd93c8d90c5a0854594

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