Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 659 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 659 Bytes

CartoDB python client

A simple CartoDB client to perform requests against the CartoDB API. Internally it uses OAuth

installing

pip install -e git+git://github.com/javisantana/cartodb-python.git#egg=cartdob

quick start

user =  '[email protected]'
password =  'XXXX'
CONSUMER_KEY='XXXXXXXXXXXXXXXXXX'
CONSUMER_SECRET='YYYYYYYYYYYYYYYYYYYYYYYYYY'
cartodb_domain = 'vitorino'
cl = CartoDB(CONSUMER_KEY, CONSUMER_SECRET, user, password, cartodb_domain)
try:
    print cl.sql('select * from mytable')
except CartoDBException as e:
    print ("some error ocurred", e)