Files
nuzlocke-tracker/.beans/nuzlocke-tracker-dqyb--set-up-python-tool-scaffold.md
Julian Tabel df7ea64b9e Add reference data mappings and auto-download for PokeDB import tool
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>
2026-02-11 10:02:57 +01:00

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
nuzlocke-tracker-zno2

Set up the standalone Python tool project in tools/import-pokedb/.

Checklist

  • Create tools/import-pokedb/ directory structure
  • Set up pyproject.toml with dependencies (just stdlib should suffice for JSON processing, maybe click for CLI)
  • Create CLI entry point (__main__.py or 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)