Prettymaps is a Python library for drawing customized maps from OpenStreetMap data. It combines osmnx for data retrieval, matplotlib for rendering, and shapely for geometric operations to create visually styled cartographic output.
The library solves the problem of generating aesthetically appealing maps with fine-grained control over visual styling. Rather than relying on web-based mapping services, prettymaps lets users query OpenStreetMap data programmatically and render it with matplotlib's full customization capabilities, enabling everything from simple styled maps to generative art pieces. The approach leverages existing geospatial and visualization libraries rather than building mapping infrastructure from scratch.
Prettymaps suits developers and artists who want to create custom map visualizations for notebooks, scripts, or web applications. It works well for projects requiring programmatic map generation with control over colors, layers, and artistic styling. The tool is particularly useful in Jupyter environments and integrates with Google Colaboratory for cloud-based workflows. The project explicitly discourages use for NFT generation, requesting that users respect the creator and maintain proper attribution to both the repository and OpenStreetMap as required by their license.
The project maintains active development with regular updates to dependencies and features. Documentation is available through GitHub Pages alongside the core library. A Streamlit-based web interface provides an accessible entry point for users who prefer graphical interaction over code. The tool supports Python 3.11 and later versions, with installation available through standard package management channels.