datasalad/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Hanke fbc5e44803
Some checks failed
Codespell / Check for spelling errors (push) Successful in 31s
Ruff / Code linting (push) Successful in 39s
Type annotation (project) / check (push) Failing after 47s
Unit tests (Linux) / check (push) Successful in 2m11s
feat: progress handler interface and implementations
This is a first draft of a facility that (for example) simple functions
can use to report on the progress of one or more (simultaneous) tasks.

The idea is that any such function accepts a progress handler as a
parameter. For example:

```
def fx(..., progress_handler: ProgressHandler | None = None):
    ...
```

whenever it is given a handler, it can use the API define in the
`ProgressHandler` base class to register tasks, update on their
progress, and also remove them again (leaving informative messages
on all steps).

A caller can provide a progress handler implementation that is suitable
in the context a function is called (think: a GUI application vs a
script vs a CLI tool).

Function can make a progress handler parameter optional. This can be
used to communicate to the function that progress reports need not be
made, and based on this knowledge different/simpler code paths could
be used.
2026-05-28 13:07:47 +02:00
..
_templates/autosummary chore: tune documentation setup 2024-09-29 10:57:50 +02:00
.gitignore doc(sphinx): basic setup for autosummaries of the API 2024-06-07 06:47:50 +02:00
CODEOWNERS Basic CODEOWNERS setup 2024-05-14 19:07:20 +02:00
conf.py doc: enable napoleon sphinx extension 2025-07-16 11:05:24 +02:00
index.rst feat: progress handler interface and implementations 2026-05-28 13:07:47 +02:00
Makefile chore: tune documentation setup 2024-09-29 10:57:50 +02:00