Skip to main content

Given a Frictionless Table Schema, generates an Excel template with input validation

Project description

tableschema-to-template

Given a Frictionless Table Schema (like this), generate an Excel template with input validation (like this).

This is a proof of concept.

Usage

pip install tableschema-to-template
wget https://raw.githubusercontent.com/hubmapconsortium/tableschema-to-template/main/tests/fixtures/schema.yaml
ts2xl.py \
  --input_schema schema.yaml \
  --output_dir /tmp
# Open with Excel:
open /tmp/template.xlsx

Development

From a checkout of the repo, run a demo:

pip install -r requirements.txt
tableschema_to_template/ts2xl.py \
  --input_schema tests/fixtures/schema.yaml \
  --output_dir /tmp
# Open with Excel:
open /tmp/template.xlsx

Run the tests:

pip install -r requirements-dev.txt
./test.sh

To build and publish,

  • If you haven't already, generate a token on Pypi and create a .pypirc in your checkout.
  • Increment the version number in setup.py.
  • Finally: ./publish.sh

Next steps

  • How, and whether, to validate regex patterns. Possibilities:
    • Don't even try!
    • Add VBA to provide regex support in Excel.
    • Target Google Sheets, which provides a regex function out of the box.
    • Or target OpenOffice, where regexes can be turned on in the settings.

Related work

From the Frictionless community:

For the biomedical ontologies community:

  • CEDAR: Data entry tool based on ontologies.
  • Webulous: Google sheets plugin that adds pulldowns based on ontology terms.

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

tableschema-to-template-0.0.4.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

tableschema_to_template-0.0.4-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file tableschema-to-template-0.0.4.tar.gz.

File metadata

  • Download URL: tableschema-to-template-0.0.4.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for tableschema-to-template-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7dbb9170246f2fa4aa7ed2f72fa69ccb9969f69bc7082e39ec9212f1af77824f
MD5 1580a8fedbd46a6eb61c6577cb735e65
BLAKE2b-256 5dd1960c4f7f08307effa67b8b69fec9e2124bae4bda80c0ca3d5ea921022330

See more details on using hashes here.

File details

Details for the file tableschema_to_template-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: tableschema_to_template-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5

File hashes

Hashes for tableschema_to_template-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd2cac28c9d90033111f8765a36ad1b713f29ec8778dc33e94f296bdb904254f
MD5 0f0ad6310a9a2a37ace1dcb1a8b416b2
BLAKE2b-256 4fe24e5835d56f4c3ce96fc8ef3926d070387073570820274801519fdf9abae0

See more details on using hashes here.

Supported by

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