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 ';'
Release files for guess-xsd-type 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| guess_xsd_type-0.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| guess_xsd_type-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / guess_xsd_type-0.1.tar.gz
| Download URL | guess_xsd_type-0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbd012ba4d28ee6f124df9af59daee597310cd0df8faa8df40655f8a15593d74
|
|
BLAKE2b-256 checksum How to use checksums |
e8869250f0e66fe653d369a57dea1a39dc281b8854a1494bc9d653bc73b5e053
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / guess_xsd_type-0.1-py3-none-any.whl
| Download URL | guess_xsd_type-0.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb4bce0f7bb29fafe9d3807ac41432f2c3539f98fecf6338268f1eac1f389740
|
|
BLAKE2b-256 checksum How to use checksums |
f9d6377f7e2e2bcb97052c310db1168f6fbd96536f59fc9e0e9b4153e5bd0353
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|