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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for tableschema-to-template-0.0.13.tar.gz
Algorithm Hash digest
SHA256 2d8d2250efb840e0ecb9012c5e879a82ef68f65dd86bdff574200fdfc978ff1c
MD5 862c6903d84b866f9410d176c8735dba
BLAKE2b-256 232d5b5c0127e959a715c5365b3b491846fba5bc1fb7f94370cc3a4fb3f51f68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tableschema_to_template-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4905500a4235740654230c3223629d26fdccb7a0457ec1d0110ea102c4f1146c
MD5 f9de65d06bdb353c8889718acf9f4a27
BLAKE2b-256 9f7f3c129377d9b815c0bb92b8c24bbecabe5e6b13b831f38924f80d2e5b40b2

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