CartoDB

class cartodb.CartoDB(subdomain, api_key)

Create a CartoDB service.

Variables:
  • subdomain (str) – The account-specific part of the CartoDB domain, for instance use mycompany if your CartpDB domain is mycompany.cartodb.com.
  • api_key (str) – The API key.

Service methods

CartoDB.sql(q)

SQL request to the CartoDB account

Variables:q (str) – The sql query
CartoDB.viz(type=None)

Get the list of visualizations (undocumented endpoint)

Variables:type – The visualization type