Skip to content

Try out Trogon for a tui interface #545

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

Closed
simonw opened this issue May 21, 2023 · 6 comments
Closed

Try out Trogon for a tui interface #545

simonw opened this issue May 21, 2023 · 6 comments
Labels

Comments

@simonw
Copy link
Owner

simonw commented May 21, 2023

https://github.com/Textualize/trogon

@simonw
Copy link
Owner Author

simonw commented May 21, 2023

I don't want to add trogon as a default dependency because it's a little heavy - it pulls in all of Rich and Textual as well. People who use sqlite-utils just for its Python API won't benefit from this - it's a CLI feature only.

But I have a sqlite-utils install ... command for helping people to install packages into the same virtual environment as sqlite-utils no matter how they installed that tool: https://sqlite-utils.datasette.io/en/stable/cli.html#cli-install

So I can treat Trogon as an optional dependency and add the sqlite-utils tui command only if that package is also installed.

@simonw
Copy link
Owner Author

simonw commented May 21, 2023

OK, this works!

trogon

To try it out, install that branch from GitHub:

pip install https://github.com/simonw/sqlite-utils/archive/refs/heads/trogon.zip

Then run this:

sqlite-utils install trogon

And this:

sqlite-utils tui

@simonw
Copy link
Owner Author

simonw commented May 21, 2023

Opened a feature request for customizing the help and command name:

@simonw
Copy link
Owner Author

simonw commented May 21, 2023

It looks like nargs=-1 on a positional argument isn't yet supported - opened an issue here:

simonw added a commit that referenced this issue May 21, 2023
simonw added a commit that referenced this issue May 21, 2023
@simonw simonw closed this as completed in 718b0cb May 21, 2023
simonw added a commit that referenced this issue May 21, 2023
simonw added a commit that referenced this issue May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant