- 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
13 lines
392 B
Python
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",
|
|
]
|