v0.0.10
[v0.0.10] - 2025-03-17
Added
-
kisstdlib.signal_ext: IntroducedGentleSignalInterruptsimplifying the API usage a bit. -
kisstdlib.base: Now re-exportspartialandpartialmethod. -
kisstdlib.string_ext: Introducedpath_escaperand related singletons. -
kisstdlib.logging_ext:ANSILogHandler: Simplified the API by mergingrollbackfunctionality intoflush. -
kisstdlib.fs:-
Introduced
atomic_unlink. -
Introduced
setup_fs, making temp file suffixes configurable.Also,
kisstdlib:setup_kisstdlibnow runs this function too.
-
Fixed
-
kisstdlib.signal_ext: From now on,delay_signal_handlerwill flush delayed signals when raisingSignalInterrupt.This prevents
raise_first_delayed_signalandraise_delayed_signalsfrom raising them again, which was a bug. -
kisstdlib.io.stdio: Fixedprintfto count implicit eols properly. -
kisstdlib.fs:-
iter_subtree: Fixed error format. -
atomic_make_file: Addedfsyncbeforerename, which should have been there.
-
-
kisstdlib:run_kisstdlib_main: Now handlesBrokenPipeErrors when finishing up.
Changed
-
devscript/test-cli-lib.sh: Improved a bit. -
kisstdlib.argparse_ext.py:-
Renamed and registered
OptionallyMarkdownHelpActionashelp_omd, similarly to howargparsedoes it. -
Introduced
store_mapandappend_mapactions.Which do the same thing as
storeandappend, but map values with a given function.
-
-
kisstdlib.fs:-
Replace
fsdecode_maybeandfsencode_maybewith imports fromos.Those functions have this functionality too.
-
DeferredSync:-
Renamed
commit->sync,finish->flush. -
Action deference can now be optional, i.e.
DeferredSynccan now be used to only defer thefsyncalone.
-
-
atomic_*:-
Renamed
dsyncarguments ->sync, now allowing them to bebools.I.e., added no-
fsync/async mode to all of those functions. -
Added
progprogram name and itspidto temp file suffixes.Though, it's configurable via
setup_fs.
-
-
-
kisstdlib:setup_kisstdlib: Simplified the API a bit.Users should now call
setup_delay_signalsthemselves if they need non-defaultsignals.