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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file guess_xsd_type-0.1.tar.gz.
File metadata
- Download URL: guess_xsd_type-0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbd012ba4d28ee6f124df9af59daee597310cd0df8faa8df40655f8a15593d74
|
|
| MD5 |
1c232b702771234423904333d43d3e93
|
|
| BLAKE2b-256 |
e8869250f0e66fe653d369a57dea1a39dc281b8854a1494bc9d653bc73b5e053
|
File details
Details for the file guess_xsd_type-0.1-py3-none-any.whl.
File metadata
- Download URL: guess_xsd_type-0.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb4bce0f7bb29fafe9d3807ac41432f2c3539f98fecf6338268f1eac1f389740
|
|
| MD5 |
bb7d602d76f9d54ec61cd43b7b880a51
|
|
| BLAKE2b-256 |
f9d6377f7e2e2bcb97052c310db1168f6fbd96536f59fc9e0e9b4153e5bd0353
|