Open simonw opened 1 year ago
Hey @simonw thanks for the suggestion! If the method you mentioned works, feel free to raise a PR and we'll try it out!
I'm not an expert but my understanding (confirmed by the output example) was pipx should not be used for libraries such as chdb. Could chdb-cli perhaps be a better target for this request?
I didn't know about chdb-cli
! Does that offer the same functionality as python -m chdb
or is it meant to solve a different purpose?
Personally I really like the pattern of Python libraries which offer a CLI tool as part of the same package - my https://sqlite-utils.datasette.io and https://llm.datasette.io packages both do this - but I understand that tastes on this may differ.
I'd like to be able to do this:
As an alternative to this:
The reason I want this is that
pipx
automates the process of creating a separate virtual environment for each tool, so it lets me try out tools likechdb
without manually creating a virtual environment for it.This currently doesn't work, because the
chdb
package does not declare a CLI tool entrypoint. I get this error:I think one way to implement this would be to add this to
setup.py
: