After frustrations dealing with getting Cassandra’s Python-based command-line tool cqlsh into a virtual environment, I finally spent a couple hours learning how to put together setup.py file to publish a package through PyPI. Using the version of the cqlsh from the official repo and the Apache 2.0 licensed cqlshlib from a fresh Cassandra 2.0 install, I bundled and published cqlsh & cqlshlib to PyPI.
To install cqlsh and cqlshlib, simply run the following command:
pip install cqlsh
The package can be viewed on the PyPI site here. To view the setup script on github, visit here. If you have any questions or changes, post in the comments or send me a pull request!