jeffwidman / cqlsh

Home of the cqlsh package on PyPI. Repackages the official Cassandra cqlsh for lighter-weight installs.
Apache License 2.0
19 stars 7 forks source link

Python module for CQLSH #5

Closed bschoening closed 2 years ago

bschoening commented 2 years ago

First, this package can't be executed using the Python facility for executing modules as scripts

$ python -m cqlsh python.exe: No module named cqlsh

Second, cqlsh can't be imported as a module. Thus, libraries like:

https://github.com/slowenthal/cql_kernel and 
https://github.com/bschoening/cqljupyter

copy and paste the cqlsh.py code. Making this a module would allow for reuse of cqlsh.py and other libraries could simply import 'cqlsh'.

jeffwidman commented 2 years ago

Completely agree. I'd happily merge a PR making the change so it can be both used as a script and importable.

jeffwidman commented 2 years ago

Closed by #7 - thanks @bschoening for the fix.