Skip to main content

AI-assisted table configuration generation for Tablassert — entity resolution, YAML validation, and Biolink documentation lookup.

Project description

Tablassist CLI

PyPI Python License

Python CLI tool for AI-assisted Tablassert table configuration generation — entity resolution, YAML validation, and Biolink documentation lookup.

Tablassist ships with two document extraction modes:

  • extract-text for fast raw extraction via Textract
  • extract-text-semantic for richer Docling-backed semantic extraction with Markdown output and ocr=auto by default

Installation

pip install tablassist

The base install now includes Docling, so extract-text-semantic works without a separate helper script or optional extra.

An optional extra is available for CPU compatibility:

pip install "tablassist[rtcompat]"  # Polars build for CPUs without required instructions

Requirements

  • Python >= 3.13
  • Environment variables TABLASSIST_USERNAME and TABLASSIST_API_KEY for API-accessing commands

Usage

# Fetch table configuration documentation
tablassist docs-table-config

# Fetch advanced configuration examples
tablassist docs-advanced-examples

# Fetch the CLI tutorial
tablassist docs-tutorial

Entity Resolution

# Search for entity CURIEs by term
tablassist search-curies "breast cancer"

# Get canonical info for a specific CURIE
tablassist get-curie-info "MONDO:0007254"

# Search gene CURIEs within an NCBI taxon
tablassist search-gene-curies "BRCA1" --ncbi-taxon 9606

# Resolve an NCBI Taxon ID from an organism name
tablassist resolve-taxon-id "Homo sapiens"

Biolink Reference

# List all supported categories, predicates, or qualifiers
tablassist list-categories
tablassist list-predicates
tablassist list-qualifiers

# Fetch documentation for a specific Biolink element
tablassist docs-category "Gene"
tablassist docs-predicate "interacts_with"
tablassist docs-qualifier "qualified_predicate"

YAML Validation

Full config validation requires template: as the top-level key, with optional sections:. Use validate-section-str only for individual section mappings, not for whole config files.

# Validate a full config file
tablassist validate-config-file config.yaml

# Validate a single section from a YAML string
tablassist validate-section-str '<yaml>'

# Validate a full config from a YAML string
tablassist validate-config-str '<yaml>'

# Get the Section JSON schema
tablassist section-schema

Data Preview

# List sheets in an Excel file
tablassist excel-sheets data.xlsx

# Preview rows from an Excel sheet
tablassist preview-excel data.xlsx "Sheet1" 10

# Preview rows from a CSV file
tablassist preview-csv data.csv 10

# Extract text from a document (PDF, DOCX, etc.)
tablassist extract-text document.pdf

# Extract semantic Markdown from a document with Docling
tablassist extract-text-semantic document.pdf

# Extract plain text and explicitly disable OCR
tablassist extract-text-semantic document.pdf text off

extract-text is optimized for fast, low-overhead text grabs.

extract-text-semantic runs IBM Docling directly from the CLI module. It is the better choice when reading order, headings, lists, or table-aware Markdown matter more than raw speed.

Arguments for extract-text-semantic:

  • file — local document path
  • output_formatmarkdown (default) or text
  • ocrauto (default), off, or on

Use ocr=auto for the default balance. Use ocr=on for scans and image-heavy PDFs, and ocr=off when you know the source is born-digital and want the lightest path.

PMC Archive Download

# Download and extract a PMC tar archive
tablassist download-pmc-tar 12345 --dest-dir ./output

Development

uv sync                              # install dependencies
uv run ruff check .                  # lint
uv run ruff check --fix .            # lint with auto-fix
uv run ruff format .                 # format
uv run pyright                       # type check
uv run --group dev python -m pytest  # run all tests

License

Apache License 2.0

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

tablassist-0.3.1.tar.gz (155.0 kB view details)

Uploaded Source

Built Distribution

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

tablassist-0.3.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file tablassist-0.3.1.tar.gz.

File metadata

  • Download URL: tablassist-0.3.1.tar.gz
  • Upload date:
  • Size: 155.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tablassist-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8ac18b994c575e7a021279d4776ff136749f49e8535d1b5b3272d2c066d49254
MD5 5ff7b39e92bdd8e5f684a629fc9ebd53
BLAKE2b-256 2aca7c121e3aa11725b8e291f09f1500f90ba942049b03c76425af442e692fec

See more details on using hashes here.

Provenance

The following attestation bundles were made for tablassist-0.3.1.tar.gz:

Publisher: pypi.yml on SkyeAv/Tablassist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tablassist-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: tablassist-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tablassist-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f6b8e494c4f31c49b16186aa09d4ea3074b5120e65f06e6c11f611e5d4cef0
MD5 40f2de45782f43457ba52bed97df6594
BLAKE2b-256 05b636b9505ec90f4cdee1bd8a48718f28d9fae1b08c05d0a93f733b9c56aaae

See more details on using hashes here.

Provenance

The following attestation bundles were made for tablassist-0.3.1-py3-none-any.whl:

Publisher: pypi.yml on SkyeAv/Tablassist

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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