Skip to main content

TaCLe is a tool for learning constraints and formulas in spreadsheets.

Project description

TaCle: Tabular Constraint Learner

TaCLe is a constraint learner designed for usage in spreadsheets and tabular data.


pip install tacle

Using TaCLe

Running TaCLe from command line

TaCLe can be used from command line to analyze a CSV file:

python -m tacle data/magic_ice_cream.csv

This returns a list of constraints in the file:

T1[:, 1] -> T2[:, 1]
T1[:, 6] = SUM(T1[:, 3:5], row)

Filter output

If you are interested in specific types of constraints, you can filter the output:

python -m tacle data/magic_ice_cream.csv -f "foreign-key"  # Report only foreign keys
python -m tacle data/magic_ice_cream.csv -f "<f>"  # Report only formulas -- use <c> for only constraints


To view the tables that TaCLe finds in a file you can run:

python -m tacle data/magic_ice_cream.csv -t

This returns the tables and blocks found by TaCLe:

Table T1, (1:9, 0:7)
Columns 0-2 (string), Columns 2-6 (int), Columns 6-7 (string)

Table T2, (11:15, 0:2)
Columns 0-1 (string), Columns 1-2 (int)


Read more about how TaCLe works in one of our two papers journal version, demo paper.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tacle, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size tacle-1.0.8-py2.py3-none-any.whl (61.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size tacle-1.0.8.tar.gz (52.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page