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).

Usage

Download a sample schema.yaml, and then:

pip install tableschema-to-template
ts2xl.py schema.yaml template.xlsx
# Open with Excel:
open template.xlsx

Or to use inside Python:

from tableschema_to_template.create_xlsx import create_xlsx
schema = {'fields': [{
  'name': 'a_number',
  'description': 'A number!',
  'type': 'number'
}]}
create_xlsx(schema, '/tmp/template.xlsx')

Additional docs:

Features

  • Enum constraints transformed into pull-downs.
  • Field descriptions transformed into comments in header.
  • Float, integer, and boolean type validation.

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.11.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

tableschema_to_template-0.0.11-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tableschema-to-template-0.0.11.tar.gz
  • Upload date:
  • Size: 11.3 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.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.12

File hashes

Hashes for tableschema-to-template-0.0.11.tar.gz
Algorithm Hash digest
SHA256 ebb17498d013d5986ebb1a685caa96d1e51dbca403ba309565037b7ed797af69
MD5 01352525afb323c905a5a05cf82fdc39
BLAKE2b-256 04feb3ec9ea38e4ccd711962855dcfd8e0161a415f1133889f9f8bead48e5338

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tableschema_to_template-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 13.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.2.post20201201 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.6.12

File hashes

Hashes for tableschema_to_template-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a931fc25916e13b2e79757d029285adab03f610b0d3d6e29c5903356efcd9df2
MD5 50b404621697096b415f16b167abfd27
BLAKE2b-256 d8affc6dacf25523c39f8208b56b67292e6bb43e7057b8aacad355cf38bbc02f

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