Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TBN Python module to assist with "reactive" output #17

Open
Remi-Gau opened this issue Nov 29, 2022 · 0 comments
Open

TBN Python module to assist with "reactive" output #17

Remi-Gau opened this issue Nov 29, 2022 · 0 comments

Comments

@Remi-Gau
Copy link
Contributor

Yaroslav O. Halchenko and everyone else welcome to join

It is quite often desired to provide standard output from a script in a consistent (e.g. tabular) layout whenever not all entries are known ahead of time and some entries might either have values changing or affecting previous lines. E.g. it could be that underlying process either async providing values back for display later in time or just that values for already presented entries pulled again from time to time (e.g. status of a job). Or a simple use-case -- values for later output lines should adjust presentation of previous lines (e.g. a column should be expanded in the tabular view). The idea is to use basic ANSI lines navigation/editing commands to adjust previously presented output. It should be similar in vein to how e.g. "docker pull", multiple tqdm progress bar are managed on the screen (e.g. try doing datalad install -g -J4 ///labs/haxby/raiders/ to see example, or how "tig" updates author field in the tree view. This module could then be used as a helper for various Python projects demanding "reactive" standard output.
It might as well be that such module already exists, so if you know some -- please share pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant