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
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 /tmp/template.xlsx
Development
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
- Package and push to pypi.
- 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:
table-schema-resource-template
: Generates templates, but doesn't go beyond row headers.data-curator
: Desktop application for data entry based on Table Schema.csv-gg
: Web app which serves data entry form, and uses Validata API for validation.
For the biomedical ontologies community:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tableschema-to-template-0.0.2.tar.gz
.
File metadata
- Download URL: tableschema-to-template-0.0.2.tar.gz
- Upload date:
- Size: 4.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d908a0db385971b558a45d0bf1548d14950d3367122ceaff0157e408bcc5acdc |
|
MD5 | 8a3bf88e8d817b83ef6f7527aa7f3d47 |
|
BLAKE2b-256 | 281f2e60689bcee9c451757558dbee337e51edd525536b90ef744854372ac36f |
File details
Details for the file tableschema_to_template-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: tableschema_to_template-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2433f02d98a9fe5d001a5f8ddc21c065610588690917e21f3578b090d0559963 |
|
MD5 | 557154616d2b96efd5d853d33588c4fb |
|
BLAKE2b-256 | e6c96275393961adab9e5eacf890397dc9d2241eb7adfe1bddd87a6ff11bac03 |