- add
L.setattrs
, inspired by Saul Pwanson (#117) - move
Config
fromnbdev
(#116) - add
nested_attr
and use it inL.attrgot
(#115)
patch_property
: usepatch(as_prop=True)
instead
- New param
cast
forstore_attr
and new decoratorwith_cast
(#114) - add
L.insert
andexec_local
(#113) - Patch decorator with optional argument (#110), thanks to @Salehbigdeli
- Make typedispatch decorator more general (#106), thanks to @Salehbigdeli
- Fix default in oper (#112), thanks to @Salehbigdeli
- Inconsistency with
cmp_instance
andtypedispatch
because of binary sort algorithm (#100)
- add
ignore_ex=False
andas_bytes=False
params torun
(#108) AttrDict
: adict
subclass that also provides access to keys as attrs; and changedict2obj
to createAttrDict
s instead ofSimpleNamespace
s (#107)
run
: flexibly run an external process and raise exception if it fails (#105)
- add
threadpool=False
param toparallel
to use threads instead of processes (#102)
- add
L.map_filter
andL.map_first
(#97)- These support some nice refactorings, like changing from this:
to this:
d = [] for c in cs: m = f(c) if not m: continue d.append(m.group(1))
d = cs.map_filter(f).map(Self.group(1))
- These support some nice refactorings, like changing from this:
- Reapply fix for #86 which was unintentionally reverted by the next commit (#91)
dict2obj
: Convert (possibly nested) dicts (or lists of dicts) toSimpleNamespace
(#90)
- add function support to
store_attr
(#85)
mp_context
keyword for initialising concurrent.futures.ProcessPoolExecutor only supported in python 3.7+ (#86)
- remove
parallel_chunked
, usechunksize
arg toparallel
instead (#81)
- move fastscript to fastcore.script (#84)
- add
run_proc
anddo_request
(#83) - added
chunksize
toparallel
, which passes toProcessPoolExecutor.map
(#82) - move metaclasses and delegates et al to new
meta
module (#80)
- Remove numpy prerequisite (#75)
- NB: fastcore's
L
and other collection features still work with numpy arrays, but they do so internally using instance methods, so numpy is no longer a prerequisite, and numpy is not loaded if not used
- NB: fastcore's
- "has default params. These will be ignored" shown when not appropriate (#74)
- Change arguments of
store_attr()
and removestore_attrs
attribute (#71)store_attr
's API has changed.self
is now the second parameter, and is optional. Previously, if no names were passed to store, names were taken from thestore_attrs
attribute; now, however, names are taken from the list of arguments to the current function.
- Initial release