Python supercharged for fastai development
Actively maintained. Last release 2 days ago, commits in 24 of the last 26 weeks. A safe choice.
pip install fastcoreWelcome to fastcore
[!NOTE]
fastcore v2
In July 2026 we released fastcore v2, which removes or relocates a number of APIs that had accumulated better alternatives. If you use
from fastcore.utils import *(orfastcore.all), most of these changes won’t affect you. The breaking changes:Paramis gone fromfastcore.script; use plain type annotations with docments, ortyping.Annotated[type, "help"], optionally with adictof argparse arguments for advanced features.L’sstarmap,starfilter, and the otherstar*/rstar*methods are replaced by thestarandrstarfunction adapters, which compose with everyLmethod (e.g.t.map(star(f))); relatedly,spreadis replaced bystar, anddspreadis renamed todstar. Async helpers now live in the newfastcore.aiomodule:run_sync,iter_sync, andctx_syncmoved there fromnet, andmaybe_await,then,mapa,acache,reawaitable, , and the other async utilities moved there from . and the config file functions moved from to . lost its request builders (, , , ) and is gone. is removed; the stdlib pattern replaces it (fastai’s shows the recipe). Python 3.11 or later is now required. If you need the old APIs, pin .