py-openlayers: OpenLayers for Python
Provides Python bindings for OpenLayers, a high-performance, full-featured web mapping library that displays maps from various sources and formats. It makes it easy to create interactive maps in Marimo and Jupyter notebooks with a few lines of code in a pythonic way.
Features
Tiled Layers
Pull tiles from OSM, Carto, MapTiler and any other XYZ source.
Vector Layers
Render vector data from GeoJSON, TopoJSON, KML, GML and other formats.
Controls
Add geocoding, draw, full screen and other controls to your map.
WebGL
Render large data sets using WebGL.
PMTiles
Render PMTiles from vector and raster sources.
Interactions
Drag and drop GPX, GeoJSON, KML or TopoJSON files on to the map. Modify, draw and select features.
GeoPandas Extension
import openlayers as ol
data = "zip+https://github.com/Toblerity/Fiona/files/11151652/coutwildrnp.zip"
gdf = ol.GeoDataFrame.from_file(data)
gdf.ol.color_category("STATE").explore()
Installation
uv init
uv add openlayers
uv add "git+https://github.com/eoda-dev/py-openlayers@main"
Quickstart
import openlayers as ol
# Jupyter or Marimo
m = ol.MapWidget()
m # Display map
# Standalone
m = ol.Map()
m.save()
Marimo Live Notebooks
Shiny Live Apps
Documentation
Note
The documentation is still in an early stage, more examples will be added as soon as possible.
Metadata
Release files for openlayers 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openlayers-0.1.6.tar.gz | 1.6 MB | Without provenance | Details for openlayers-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openlayers-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for openlayers-0.1.6-py3-none-any.whl |
Total release size: 2.3 MB
Release files / openlayers-0.1.6.tar.gz
| Download URL | openlayers-0.1.6.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3eb3d553c75dca688a47b48afbc383d6f58a284f1c253a91d8e0285ca84eab6
|
|
BLAKE2b-256 checksum How to use checksums |
250fda7dbe1d2fdeb4059edf657d81bf4d9ab665d9e9e5cd1fe14b90dbbbc08c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.18
|
Release files / openlayers-0.1.6-py3-none-any.whl
| Download URL | openlayers-0.1.6-py3-none-any.whl |
|---|---|
| Size | 758.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d74e3e4844ffa056f37940bf72d4256bf39eca3b2c9c477e57dad1b619b19b5
|
|
BLAKE2b-256 checksum How to use checksums |
a09335b8bb38374675c6eb0cb60e58609de1093a4ae49074dafb2a3482b21334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.18
|
Security for openlayers 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.