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

Support tracking progress of async tasks #2480

Closed
danielgafni opened this issue Aug 19, 2022 · 4 comments
Closed

Support tracking progress of async tasks #2480

danielgafni opened this issue Aug 19, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@danielgafni
Copy link

How would you improve Rich?

Add support to the following:

async for item in track(items):
    ... 

Currently this code fails with:

TypeError: 'async for' requires an object with __aiter__ method, got generator
@ODtian
Copy link

ODtian commented Nov 19, 2022

need async support too, asyncio is where streams mostly used.

@glensc
Copy link
Contributor

glensc commented Jan 14, 2023

I've used rich progressbar via tqdm.rich so far:

tqdm has async wrapper, but sadly no without rich:

perhaps both could be copyed to rich and have support, because tqdm doesn't get much activity in their repo:

@willmcgugan willmcgugan added wontfix This will not be worked on enhancement New feature or request and removed Needs triage wontfix This will not be worked on labels Jul 2, 2024
@willmcgugan
Copy link
Collaborator

No plans to work on this, but I would accept a PR.

Copy link

github-actions bot commented Jul 2, 2024

I hope we solved your problem.

If you like using Rich, you might also enjoy Textual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants