Tablassist CLI
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-textfor fast raw extraction via Textractextract-text-semanticfor richer Docling-backed semantic extraction with Markdown output andocr=autoby 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_USERNAMEandTABLASSIST_API_KEYfor API-accessing commands
Usage
# Fetch table configuration documentation
tablassist docs-table-config
Entity Resolution
# Search for entity CURIEs by term
tablassist search-curies "breast cancer"
# 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 pathoutput_format—markdown(default) ortextocr—auto(default),off, oron
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
Metadata
Release files for tablassist 0.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tablassist-0.4.5.tar.gz | 168.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tablassist-0.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 185.5 kB
Release files / tablassist-0.4.5.tar.gz
| Download URL | tablassist-0.4.5.tar.gz |
|---|---|
| Size | 168.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7309da1d25461f281e346999b2bb974baf2500450ebcfcc4dbe9f9cdd1843239
|
|
BLAKE2b-256 checksum How to use checksums |
05c01fa606941e185d91ba01becd865f477d844c8426f8fa124e2f9d7a6d6336
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 12, 2026.
Transparency logRelease files / tablassist-0.4.5-py3-none-any.whl
| Download URL | tablassist-0.4.5-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80ac3e329b0a4c895e86f0e2b49713fc4a26adf53589645c43fe6586309f5ea4
|
|
BLAKE2b-256 checksum How to use checksums |
5aeaa278c0f981cfac6fc0c1852e34ecea1aa535e7c73ce1a6f7ac8976ef0fd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 12, 2026.
Transparency log