testsAndMisc/python_pkg/anki_decks/warsaw_streets
Krzysztof kuhy Rudnicki 2545d72710 test: achieve 100% branch coverage across all python_pkg packages
- Add comprehensive tests for all packages (3572 tests, 100% branch coverage)
- Split oversized test files to stay under 500-line limit
- Add per-file ruff ignores for test-appropriate suppressions
- Fix _cache_decks.py to properly convert JSON lists to tuples
- Add session-scoped conftest fixture for logging handler cleanup (Python 3.14)
- Update ruff pre-commit hook to v0.15.2
- Add codespell ignore words for test data
- Add generated output files to .gitignore
2026-03-21 17:51:36 +01:00
..
tests test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
__init__.py Consolidate all Anki deck generators into python_pkg/anki_decks/ 2026-02-07 15:32:23 +01:00
README.md Consolidate all Anki deck generators into python_pkg/anki_decks/ 2026-02-07 15:32:23 +01:00
run.sh feat: added run sh and makefile scripts 2026-02-22 22:00:50 +01:00
warsaw_streets_anki.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00

Warsaw Streets Anki Generator

Generate Anki flashcards for learning major Warsaw streets.

Features

  • Generates flashcards for major Warsaw streets (primary, secondary, tertiary roads)
  • Uses real street data from OpenStreetMap
  • Front of card: Map showing Warsaw with the street highlighted
  • Back of card: Street name in Polish
  • Self-contained .apkg file with embedded images

Data Source

Street data is fetched from OpenStreetMap via the Overpass API.

Installation

pip install matplotlib genanki geopandas requests shapely

Usage

# Generate flashcards (fetches data from OSM)
./run.sh

# Or run directly
python -m warsaw_streets_anki

Notes

  • Only includes named streets tagged as primary, secondary, or tertiary highways
  • Streets are filtered to remove duplicates and very short segments
  • The first run will download data from Overpass API (may take a minute)