Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guess_xsd_type-0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

guess_xsd_type-0.1-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

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