Files
commander-ai-lab/commander_ai_lab/cards/__init__.py
T
KoalaTrapLord b07b59d206 feat(phase-0): implement Scryfall local card image cache
- download_card_images.py: bulk download with DFC + token handling
- build_image_index.py: SQLite index with case-insensitive name lookup
- image_cache.py: SQLite lookup service with CDN fallback URL builder
- card_data_enricher.py: injects art_url/art_url_back into CardDTOs
- lab_api.py: adds /card-art/{scryfall_id} endpoint + static mount
- requirements.txt: adds tqdm, aiofiles

Closes #167
2026-04-01 13:30:08 -04:00

13 lines
392 B
Python

# Phase 0: Card image cache and data enrichment
from commander_ai_lab.cards.image_cache import get_image_cache, ImageCache, ImageCacheResult
from commander_ai_lab.cards.card_data_enricher import enrich_card, enrich_card_list, enrich_game_state
__all__ = [
"get_image_cache",
"ImageCache",
"ImageCacheResult",
"enrich_card",
"enrich_card_list",
"enrich_game_state",
]