Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 1.32 KB

README.md

File metadata and controls

43 lines (32 loc) · 1.32 KB

CartoDB table metadata sync client

Build Status

Client abstracting the calls to Rails endpoints to notify tables changes: table creations, modifications and deletions.

Project status

NOT READY: this project is under development, tests do not represent the real/final expectations for the endpoints.

Installation

For now the package can be installed like in:

pip install git+https://github.com/CartoDB/cartodb-table-sync.git#egg=cartodb-table-sync

Dependencies

For testing it also requires:

You can install them with pip:

pip install -r requirements.txt

Example

from cartodb.db import TableSync

table_sync = TableSync('localhost', 8000, False)
table_sync.created('table_name_created', 'table_id_1')

Tests

Tests can be run as unit tests or can run against a real service using the values specified in tests_service.conf.

make test # will run tests as unit tests
make test-conf # will run tests based on the endpoint configuration specified in tests_service.conf