-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Tyro's codebase is less than 1 MB. But installing it takes 12 MB. If the codebase were smaller, when I use it as a dependency, it would help other people choose it for smaller tasks on lighter machines.
The biggest are the pigments which are used by rich. Could not we make rich optional somehow? If it's used just for the output.

Either put it as an optional dependency
pip install tyro # without rich
pip install tyro[rich] # with rich
Or make an automatic second pip-package tyro light which does not install rich.
pip install tyro-light
Unfortunately, there is no possibility to not-install a dependency with pip.
Both ways are cubersome and demanding, but the prize is good.
What do you say? This is just a discussion :)
jediebrentyi
Metadata
Metadata
Assignees
Labels
No labels