Latest release: 0.2.0 (2026-03-18)
lockss-pybasic provides basic utilities for various LOCKSS projects written in Python.
lockss.pybasic.cliutilCommand line utilities based on Click Extra, Cloup and Click.
click_path(): aclick.Pathutility.PositiveInt,NonNegativeInt,NegativeInt,NonPositiveInt,UInt16:click.ParamTypeinteger types.compose_decorators(): a decorator utility.make_table_format_option(): a remix ofclick_extra.table_format_optionthat is not attached to the top-level command.make_extra_context_settings(): a customclick_extra.ExtraContext.
lockss.pybasic.errorutilError and exception utilities.
InternalErroris a no-arg subclass ofRuntimeError.
lockss.pybasic.fileutilFile and path utilities.
file_linesreturns the non-empty lines of a file stripped of comments that begin with#and run to the end of a line.pathtakes a string orPurePathand returns aPathfor whichPath.expanduser()andPath.resolve()have been called.
See CHANGELOG.rst.