Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@paulo-raca
Copy link
Contributor

I've been using asyncio on a lot of my python tools, and wrapping things in asyncio.run() becomes clumsy quickly πŸ˜…

This change Automatically wraps typer commands in asyncio.run() if they are asyncio coroutines.

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit e4c48c3 at: https://639cea27a7c2ed08a58a9c0a--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 07b2214 at: https://64aeb33c3927d700a0c055be--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 9d1f105 at: https://64af4344ad652212d4e70cd6--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit f63ae5d at: https://64af4e620519fc0091307924--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 7d2e6a7 at: https://64af500590cb4b00b49a91fa--typertiangolo.netlify.app

@paulo-raca paulo-raca force-pushed the async_command branch 2 times, most recently from 1e7c2eb to 9f5c32e Compare July 13, 2023 01:16
@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 4308aec at: https://64af512a55f978008660e38f--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 4bfc499 at: https://64af552eb5272602e83a5ab4--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 22dc4de at: https://64af5e876b7aa4068618a49f--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit b65aea7 at: https://64af60c10641ae07645c748f--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit d744687 at: https://64af65dd71b6b40a43d75136--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 3eb6020 at: https://64af667dd2cdb809b318ae44--typertiangolo.netlify.app

@github-actions
Copy link
Contributor

πŸ“ Docs preview for commit 1f3d7d1 at: https://64af671671b6b40a97d74efb--typertiangolo.netlify.app

@paulo-raca
Copy link
Contributor Author

@tiangolo, sorry to keep it open for so long without completing.

I've now added documentation and fixed mypy errors, I believe it is good to go πŸ˜ƒ

Thanks!

@svlandeg svlandeg added feature New feature, enhancement or request p3 labels Mar 6, 2024
@borissmidt
Copy link

@paulo-raca if you have not discovered it yet a good alternative with async io support is
https://github.com/BrianPugh/cyclopts
i had the same pr open for a year #633

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Sep 1, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2025

This pull request has a merge conflict that needs to be resolved.

Copy link
Member

@svlandeg svlandeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't reviewed this in detail yet, but if we ever do want to progress with this PR, we'll want to update the tutorial examples to use Typer() directly as in #1418

@paulo-raca paulo-raca closed this Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Automatically generated when a PR has a merge conflict feature New feature, enhancement or request p3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants