Add mappings module with pokemon form, location area, encounter method, and version mappings. Auto-download PokeDB JSON exports from CDN on first run, caching in .pokedb_cache/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.3 KiB
1.3 KiB
title, status, type, priority, created_at, updated_at, parent, blocking
| title | status | type | priority | created_at | updated_at | parent | blocking | |
|---|---|---|---|---|---|---|---|---|
| Set up Python tool scaffold | completed | task | normal | 2026-02-11T08:42:58Z | 2026-02-11T08:49:55Z | nuzlocke-tracker-bs05 |
|
Set up the standalone Python tool project in tools/import-pokedb/.
Checklist
- Create
tools/import-pokedb/directory structure - Set up
pyproject.tomlwith dependencies (just stdlib should suffice for JSON processing, maybeclickfor CLI) - Create CLI entry point (
__main__.pyor similar) that accepts:- Path to directory containing PokeDB JSON export files
- Target output directory (default:
backend/src/app/seeds/data/) - Optional: specific game version to generate (default: all)
- Load and parse all PokeDB JSON files:
encounters.json,locations.json,location_areas.json,encounter_methods.json,versions.json,pokemon_forms.json - Basic validation that all expected files are present and parseable
Notes
- Keep it as a standalone tool, not part of the backend
- The PokeDB JSON files are downloaded manually from https://pokedb.org/data-export — no need to automate the download
- Model the CLI similarly to how
tools/fetch-pokeapi/works (cd into dir, run the tool)