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 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, with range checks on numbers.

More details in the changelog.

Related work

If you want to construct Excel files programmatically, XlsxWriter is great!

For validated data entry, from the Frictionless community:

From 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.12.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

tableschema_to_template-0.0.12-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tableschema-to-template-0.0.12.tar.gz
  • Upload date:
  • Size: 12.1 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.12.tar.gz
Algorithm Hash digest
SHA256 48dd107e60c45b9c4a167d47ff40d6584b0daa7a57dc2ccf9ef2430b2f8a030d
MD5 cd8fafd72b287d2b1978a6bb1e3949ed
BLAKE2b-256 f553212c4bde0044d4af4616d6bb6a145ab0f4d2635942e9bc0a32ec7e401659

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tableschema_to_template-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 14.9 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 247b5a5c3e1c3116489c6ce81b49529099e0745eb4e136a2329d022a5db55744
MD5 7789e9622bddb922411e9060744772e9
BLAKE2b-256 62607c8c75c9d5c7165e443e17a209768ebe563a4f83282cc7d6a19a9ce3f5a1

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