XSD data type recommender
Project description
Guess XSD data type
The purpose of this 'package' is to guestimate a primitive XSD datatype as defined in section 3.3 here: https://www.w3.org/TR/xmlschema11-2/ Currently covers: string, decimal (and integer), date, anyURI...
If you have Python (3.x) installed you can run it from command line. There are currently three functions. One requires a value inputted by a user:
python guess_xsd_user_input.py
Another function allows for a csv to be passed on. Currently the flavour of guessing is 'one-shot', which means that just for the first value of a column the XSD datatype is guessed. To use (function,filename,delimiter):
python guess_one_shot.py ./example_stolpersteine.csv ';'
A repeated one-shot function, checks for all values in a variable and provides a guestimate if for all values the same datatype was found, or suggest 'string' as datatype. In that case a warning is given and the number and type of datatypes found is reported.
python repeated_one_shot.py ./example_stolpersteine.csv ';'
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
Hashes for guess_xsd_type-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb4bce0f7bb29fafe9d3807ac41432f2c3539f98fecf6338268f1eac1f389740 |
|
MD5 | bb7d602d76f9d54ec61cd43b7b880a51 |
|
BLAKE2b-256 | f9d6377f7e2e2bcb97052c310db1168f6fbd96536f59fc9e0e9b4153e5bd0353 |