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.

Installation

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:

ALLDIFFERENT(T2[:, 1])
ALLDIFFERENT(T1[:, 4])
ALLDIFFERENT(T1[:, 5])
ALLDIFFERENT(T1[:, 6])
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

Tables

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)

Papers

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.

Source Distribution

tacle-0.9.5.tar.gz (51.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tacle-0.9.5-py2.py3-none-any.whl (77.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tacle-0.9.5.tar.gz.

File metadata

  • Download URL: tacle-0.9.5.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for tacle-0.9.5.tar.gz
Algorithm Hash digest
SHA256 143e35594fe923b99fb853036634742fc16f062754fe3b30e78268c0d12d6201
MD5 967992eb0ecde43999f8e32b5c8469b6
BLAKE2b-256 ab53913b8ab1259eb29afca1f51f4e5a4532ddf5f925aa7b55eeadf03283c0e9

See more details on using hashes here.

File details

Details for the file tacle-0.9.5-py2.py3-none-any.whl.

File metadata

  • Download URL: tacle-0.9.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 77.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for tacle-0.9.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c829b81370d73c44f223be01d2c239f9198ae0f641e695e0dee28c2d0657b24
MD5 662e6b802bae0ccbfb2068e7fe3678fc
BLAKE2b-256 e3e2023ebd9fc75309c4603666047b78aea9ecc4f66655524ed417567c7d710c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page