Closed bschoening closed 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'.
Completely agree. I'd happily merge a PR making the change so it can be both used as a script and importable.
Closed by #7 - thanks @bschoening for the fix.
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:
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'.