Thursday, February 13, 2025¶
About CLI libraries¶
I read about Typer, which is an
extension of Click, which we use at
different places in Lino, most notably getlino
. In atelier and picsel we
still use argh, which is older than click.
GUI libraries for console terminals¶
I continue to dream about writing a command-line frontend for Lino. Right now it remains just a dream because it would be very experimental and nobody would ever pay money for it…
… but still it would be a great project for a volunteer contributor. Here are some libraries that we would consider to base our work upon.
Computing with durations¶
>>> from lino.utils.quantities import Duration
>>> def func(values):
... values = values.split()
... print(sum([Duration(x) for x in values]))
>>> func("-1:37 10:00 -6:31")
1:52
>>> func("-4:42 10:00 -0:11")
5:07