Installation¶
Requirements¶
- Python 3.10 or later
- The yoro package (installed automatically)
Basic install¶
This installs the core library with routing and database support. The only runtime dependencies are yoro and httpx.
Optional extras¶
Yoro Maps has several optional dependency groups for specific features:
Django integration¶
Adds Django 4.2+ for serving tiles and routes from a web application. See the Django Integration guide.
Tile downloading¶
Adds mercantile for calculating tile coordinates and downloading map tiles into the .yoromaps database. See the Tile Serving guide.
OSM data extraction¶
Adds pyosmium for parsing OSM PBF files and building the road graph. Required if you want to build .yoromaps files from scratch. See the Download & Build guide.
Everything¶
Installs all optional extras: django, tiles, and extract.
Development install¶
git clone https://github.com/Altius-Academy-SNC/yoro-maps.git
cd yoro-maps
pip install -e ".[all,dev]"
The dev extra includes pytest, pytest-cov, and ruff for testing and linting.
Verify installation¶
This should print the list of 21 supported countries.