Skip to content

Client abstracting the calls to Rails endpoints to notify tables changes

License

Notifications You must be signed in to change notification settings

CartoDB/cartodb-table-sync

Repository files navigation

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

About

Client abstracting the calls to Rails endpoints to notify tables changes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages