Carto Python

Python library for integrating CARTO location intelligence APIs into applications

What it is

carto-python is a comprehensive Python library that enables developers to consume CARTO APIs directly from their Python projects. The library provides programmatic access to CARTO's location intelligence platform, allowing users to import data from files, URLs, or external databases into their accounts or organizations. It supports executing SQL queries and retrieving results, running batch SQL jobs for large-scale operations, and creating both named and anonymous maps for visualization purposes.

The library offers full lifecycle management for datasets, users, and maps including creation, updating, retrieval, deletion, and listing operations. Originally developed as a complete backwards-incompatible rewrite of the deprecated cartodb-python SDK, carto-python has expanded significantly with new features not present in its predecessor. The documentation includes a quickstart guide, general concepts overview, installation instructions, authentication methods, and detailed API references for Auth, SQL, Import, and Maps APIs.

Developers can explore practical use cases through the Examples section which demonstrates actual implementations of the CARTO Python library. The project maintains comprehensive API documentation generated from source code, covering all modules, methods, and parameters. Code snippets in the guide serve as implementation references though they require valid API keys and usernames to execute. The library is versioned with multiple releases available, currently at version 1.6.0, and is hosted on Read the Docs with Sphinx-generated documentation.

This tool serves data scientists, GIS analysts, and Python developers who need to integrate location intelligence capabilities into their applications without building custom API clients. It bridges the gap between Python-based data workflows and CARTO's cloud-based spatial analysis platform, enabling seamless geospatial data processing and visualization within existing Python ecosystems.

This description was generated by AI from the site's public content and may contain errors.

What you can do there

  • Import data from files URLs or databases to CARTO
  • Execute SQL queries and batch SQL jobs
  • Create and manage named and anonymous maps
  • Full dataset user and map lifecycle management
  • Access to CARTO API documentation and examples

Who it's for

Python developers data scientists GIS analysts building location intelligence applications

Frequently asked questions about carto-python.readthedocs.io

›What is carto-python used for?

carto-python is a Python library that lets developers integrate CARTO location intelligence APIs into their applications for data import, SQL queries, map creation, and dataset management.

›How does carto-python differ from cartodb-python?

carto-python is a complete backwards-incompatible rewrite of the deprecated cartodb-python SDK with additional features not available in the original library.

›What APIs does carto-python support?

The library supports Auth API, SQL API, Import API, Maps API, and custom visualizations known as Kuviz, along with some non-public APIs.

›Where can I find examples of using carto-python?

The documentation includes an Examples section with actual use cases demonstrating how to work with the CARTO Python library in real scenarios.

›Is carto-python free to use?

The library itself is open source, but using it requires a CARTO account with valid API credentials which may have associated costs depending on your CARTO plan.

›What versions of carto-python are available?

Multiple versions are maintained including latest stable v1.6.0, v1.5, and several 1.3.x and 1.2.x releases, all accessible through the documentation site.