def primed():
 try:
  db_access = cassandra_interface.DatastoreProxy()
 except cassandra.InvalidRequest:
  return False
 try:
  return (db_access.get_metadata(cassandra_interface.PRIMED_KEY) == 'true')
 finally:
  db_access.close()

def primed ( ) : try : db_access = cassandra_interface . DatastoreProxy ( ) except cassandra . InvalidRequest : return False try : return ( db_access . get_metadata ( cassandra_interface . PRIMED_KEY ) == 'true' ) finally : db_access . close ( )
check if the required keyspace and tables are present .