Skip to content

Releases: AnswerDotAI/fastcore

v2.1.1

Choose a tag to compare

@jph00 jph00 released this 16 Jul 05:13

New Features

  • Add xdumps with __json__ protocol and item2xml for shared notebook/message XML rendering (#855)
  • Refactor tools.py into string-level editing primitives + file wrappers; add L.__copy__, str_diff, notebook validation, and pyskills entry point (#854)
    • Add L.__copy__, str_diff, notebook validation, and pyskills entry point

v2.1.0

Choose a tag to compare

@jph00 jph00 released this 14 Jul 22:48

New Features

  • Add back Python 3.10 support by replacing TaskGroup with asyncio.gather, and defer coroutine creation until semaphore is acquired (#853)

v2.0.6

Choose a tag to compare

@jph00 jph00 released this 14 Jul 08:34

New Features

  • Refactor nbio: replace apply_controls with clean_cli_output, make preferred_msg_out public (#851)

v2.0.5

Choose a tag to compare

@jph00 jph00 released this 13 Jul 07:19

New Features

  • Refactor nbio: replace apply_controls with clean_cli_output, make preferred_msg_out public (#851)

v2.0.4

Choose a tag to compare

@jph00 jph00 released this 11 Jul 04:46

New Features

  • mtime_policy now invalidates on any mtime change (#850)

v2.0.3

Choose a tag to compare

@jph00 jph00 released this 10 Jul 23:54
  • Fix dep

v2.0.2

Choose a tag to compare

@jph00 jph00 released this 10 Jul 23:23

New Features

  • Add needs_args support to flexicache policies; extend mtime_policy with arg param to watch call-argument files (#849)

v2.0.1

Choose a tag to compare

@jph00 jph00 released this 09 Jul 04:39

Breaking Changes

fastcore v2 removes or relocates a number of APIs that now have better alternatives. If you use from fastcore.utils import * (or fastcore.all), most of these changes won't affect you.

The breaking changes: Param is gone from fastcore.script; use plain type annotations with docments, or typing.Annotated[type, "help"], optionally with a dict of argparse arguments for advanced features. L's starmap, starfilter, and the other star*/rstar* methods are replaced by the star and rstar function adapters, which compose with every L method (e.g. t.map(star(f))); relatedly, spread is replaced by star, and dspread is renamed to dstar. Async helpers now live in the new fastcore.aio module: run_sync, iter_sync, and ctx_sync moved there from net, and maybe_await, then, mapa, acache, reawaitable, is_async_callable, and the other async utilities moved there from xtras. Config and the config file functions moved from foundation to xtras. fastcore.net lost its request builders (urlrequest, urlsend, do_request, urlcheck) and clean_type_str is gone. parallel_gen moved to fastai. Python 3.11 or later is now required.

If you need the old APIs, pin fastcore<2.

New Features

  • fastcore v2 (#847)
  • Replace Param class with typing.Annotated for CLI param annotations in fastcore.script (#845)
  • Add msg param to expect_fail, prefer it over test_fail in docs/tests (#844)

v2.0.0

Choose a tag to compare

@jph00 jph00 released this 09 Jul 04:23

Breaking Changes

fastcore v2 removes or relocates a number of APIs that now have better alternatives. If you use from fastcore.utils import * (or fastcore.all), most of these changes won't affect you.

The breaking changes: Param is gone from fastcore.script; use plain type annotations with docments, or typing.Annotated[type, "help"], optionally with a dict of argparse arguments for advanced features. L's starmap, starfilter, and the other star*/rstar* methods are replaced by the star and rstar function adapters, which compose with every L method (e.g. t.map(star(f))); relatedly, spread is replaced by star, and dspread is renamed to dstar. Async helpers now live in the new fastcore.aio module: run_sync, iter_sync, and ctx_sync moved there from net, and maybe_await, then, mapa, acache, reawaitable, is_async_callable, and the other async utilities moved there from xtras. Config and the config file functions moved from foundation to xtras. fastcore.net lost its request builders (urlrequest, urlsend, do_request, urlcheck) and clean_type_str is gone. parallel_gen moved to fastai. Python 3.11 or later is now required.

If you need the old APIs, pin fastcore<2.

New Features

  • fastcore v2 (#847)
  • Replace Param class with typing.Annotated for CLI param annotations in fastcore.script (#845)
  • Add msg param to expect_fail, prefer it over test_fail in docs/tests (#844)

v1.14.5

Choose a tag to compare

@jph00 jph00 released this 08 Jul 07:15

New Features

  • Redesign Self as immutable chain with ~ prefix, add then async pipe, fix bind kwargs placeholders (#843)
  • Handle *args and **kwargs correctly in docments (#842)