A JSON schema editor and validator for OpenMaker survey data.
Project description
It aims data standardization and interoperability between oinsight modules and its third party clients. oinsight is a set of data mining and machine learning functionalities developed under the OpenMaker Project: http://openmaker.eu/
Current functionalities
Current version provides a set of command-line tools as well as a python module * to be able to validate a JSON file against its predesigned schema * to be able to inspect and query the design of a JSON schema
Install
Via Python’s standard distribution channel PyPI
pip install omdata
Via its GitHub source
git clone https://github.com/bulentozel/omdata.git
cd omdata
pip install .
Usage
Command line tools
Validating a json file against its schema:
om-json validate -q <jsonfile> -s <schemafile>
Inspecting top level major fields/dictionary entries of the data file:
om-schema inspect fields-top -s <schemafile>
Listing all -including the nested ones- fields of an expected data file:
om-schema inspect fields-all -s <schemafile>
Listing all required fields of a json file to be generated:
om-schema inspect fields-required -s <schemafile>
Querying description of each fields:
om-schema inspect questions -s <schemafile>
In the case of OpenMaker survey data implementation this corresponds to a query to see the mapping between a survey question and the corresponding json entry.
In other applications
>>> import omdata
For the details see the Jupyter Notebook Tutorial
ToDo
Publishing the Docstring documentation on GitHub pages
Editing functionalities on a given schema file
Update test suits for command-line entry points.
Learn more about the OpenMaker project: http://openmaker.eu/ |
Project details
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 omdata-0.1.5.tar.gz
.
File metadata
- Download URL: omdata-0.1.5.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd160111fd22d7426b1c8bc8c95ac934d2b84d1300abbbe079ef58fefa6f2588 |
|
MD5 | 661859c2313c211bea40bde7c2ff2d2d |
|
BLAKE2b-256 | 1aa45cf65cd6188897ae334417d9c057521aca59b5232f6e770cb20004c3b89e |
File details
Details for the file omdata-0.1.5-py2.py3-none-any.whl
.
File metadata
- Download URL: omdata-0.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b62d061563de974f23e831aaf37bf5357f542a858fdb0445acb46bf36452ec52 |
|
MD5 | 4e9562866e7abfee3f2d4b1aab05d263 |
|
BLAKE2b-256 | 81a1b8f4133947bac4ebc52962de16c95796d5bdd08b2979aaa66066f2c0bb44 |