Client abstracting the calls to Rails endpoints to notify tables changes: table creations, modifications and deletions.
NOT READY: this project is under development, tests do not represent the real/final expectations for the endpoints.
For now the package can be installed like in:
pip install git+https://github.com/CartoDB/cartodb-table-sync.git#egg=cartodb-table-sync
For testing it also requires:
You can install them with pip:
pip install -r requirements.txt
from cartodb.db import TableSync
table_sync = TableSync('localhost', 8000, False)
table_sync.created('table_name_created', 'table_id_1')
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