To get a list of the keyspaces and column types in the database, use:
python list_keyspaces.py
To print out the return of a select statement, use cql_print_select
:
from cassandra_driver import query
from cassandra_cql3_formatting import cql_print_select
call_result = query('SELECT * FROM projects')
cql_print_select(call_result)
This will return:
| key || name || provider_id |
-----------------------------------------------------------------------------
| df95812e-2d0f-11e3-97a3-080027880ca6 || New Story || archive_storage |
| b1325276-2d14-11e3-9fed-080027880ca6 || Fixing Bugs || new_wave_systems |