Skip to content

feature request: ligther installation #325

@e3rd

Description

@e3rd

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.

Image

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions