~/talk

The `__magic__` of the Python Model for Magic™ data

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [python]
slides:none on file

Shows how the Python data model and dunders turn messy Scryfall JSON into typed abstractions: namedtuples, enums and dataclasses that implement __getitem__ and __len__ to act like a container. Builds a PyTorch-compatible PyTorch Dataset that lazily downloads card images, returns (image, set_code) or a transformed tensor, and lets the label swap to artist or set via a label property swap. Demo runs in PyScript but the live fetch times out.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Data vs Object Standard Programming
  3. 3:52Object Data Model
  4. 6:33Magic Methods
  5. 13:02What is Magic
  6. 13:57Data of Magic
  7. 14:47Scrapple
  8. 20:54Machine Learning
  9. 23:19Pi Script
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.