maply
maply is a Jupyter notebook widget for quickly drawing shapes on a blank XY canvas and converting them into shapely geometries, WKT strings, GeoJSON, or a GeoDataFrame.
It is built for geospatial engineers who need to prototype and test spatial algorithms, and want a fast way to hand-craft geometry for minimal reproducible examples — without typing out coordinate tuples by hand.
Features
- Draw points, lines, polygons (with holes), rectangles, and circles on an abstract XY canvas.
- Build multipart geometries / collections.
- Pull results straight into Python:
canvas.geometries→ list of shapely geometriescanvas.wkt→ WKT stringscanvas.geojson→ GeoJSON dictcanvas.to_geodataframe()→ geopandasGeoDataFrame(optional dependency)
- Or draw on a real interactive map with
GeoCanvas(ipyleaflet), including pushing Python geometry back onto the map to inspect and edit it.
Install
pip install -e . # core
pip install -e ".[geopandas]" # + GeoDataFrame export
pip install -e ".[geo]" # + GeoCanvas interactive map (ipyleaflet)
pip install -e ".[dev]" # + test / lint tooling
Quick start
from maply import MaplyCanvas
canvas = MaplyCanvas(width=600, height=400)
canvas # draw shapes interactively in the output cell
canvas.wkt # -> ['POLYGON ((...))', 'POINT (...)']
canvas.geometries # -> [<shapely Polygon>, <shapely Point>]
Draw on a real map
GeoCanvas wraps an ipyleaflet map (pan,
zoom, basemaps, draw/edit toolbar) and connects it to the same conversion layer
— in both directions:
from shapely.geometry import Polygon
from maply import GeoCanvas
geo = GeoCanvas(center=(37.77, -122.42), zoom=12)
# Python -> map: inspect / edit a geometry on the map
geo.add_geometry(Polygon([(-122.45, 37.75), (-122.40, 37.75),
(-122.40, 37.79), (-122.45, 37.79)]))
geo
# map -> Python (after drawing/editing)
geo.wkt
geo.to_geodataframe(crs="EPSG:3857") # optional reprojection
See examples/quickstart.ipynb for a full walkthrough.
Status
Alpha. MaplyCanvas uses planar XY (no CRS). GeoCanvas draws in lon/lat
(EPSG:4326) on a live map and is available with the geo extra.
Metadata
Release files for maply 0.1.0
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 | |
|---|---|---|---|---|
| maply-0.1.0.tar.gz | 21.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maply-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.1 kB
Release files / maply-0.1.0.tar.gz
| Download URL | maply-0.1.0.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2924028c010f599e7dddc558463e391729036dbb186bc28eec81430999b5d9f
|
|
BLAKE2b-256 checksum How to use checksums |
70fa7efb23122e33cad0e838a25165a40a575518259ae4c2d104719aa1f9c79e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logRelease files / maply-0.1.0-py3-none-any.whl
| Download URL | maply-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c50534dd401ee5d7cefe19f4823073ded050f9b1b48d5abf5b0501af8ee781bf
|
|
BLAKE2b-256 checksum How to use checksums |
6a57177fbc69932e27ea051595c15351e79e5737b034b983c6466c196de76017
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logSecurity for maply 0.1.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for maply-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logA 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.