in python/rest/rest_client.py [0:0]
def create_table(self, table_name, column_family):
""" Creates a table with a single column family.
It's safe to call if the table already exists, it will just fail
silently.
:param table_name: The name of the
:param column_family: The column family to create the table with.
:return: None
"""
json_output = {"name": table_name,
"ColumnSchema": [{"name": column_family}]}
requests.post(self.base_url + '/' + table_name + '/schema',
data=json.dumps(json_output),
headers={
"Content-Type": "application/json",
"Accept": "application/json"
})