Skip to main content
100%

command-line python interface for manipulating data on CartoDB

✓ Published0🌍 Public
Aandrewxhill
Last edited Jul 3, 2014
Created on Jun 19, 2014

This example demonstrates a command-line Python tool for managing and manipulating data stored on CartoDB, allowing users to upload files, overwrite or append rows, add columns, drop tables, and export datasets. It first shows the workflow of interacting with CartoDB’s SQL and Import APIs, then explains the underlying implementation. The script uses the `requests` library for HTTP calls, `urllib2` for polling import status, and `argparse` for command-line options, translating between CartoDB’s data types and PostgreSQL types during column alterations and insertions.

AI-generated description

Similar vizzes