Skinfer - tool for working with JSON schemas
Simple tool to infer and/or merge JSON schemas
Free software: BSD license
Documentation: https://skinfer.readthedocs.org.
Features
Generating schema in JSON Schema draft 4 format
Inferring schema from multiple samples
Merging schemas - nice for generating schema in Map-Reduce fashion or updating an old schema with new data
Example of using skinfer to generate a schema from a list of samples:
$ cat samples.jsonl
{"name": "Claudio", "age": 29}
{"name": "Roberto", "surname": "Gomez", "age": 72}
$ skinfer --jsonlines samples.jsonl
{
"$schema": "http://json-schema.org/draft-04/schema",
"required": [
"age",
"name"
],
"type": "object",
"properties": {
"age": {
"type": "number"
},
"surname": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
Install with:
$ pip install skinfer
Or, if you don’t have pip, you can still install it with:
$ easy_install skinfer
History
0.2.0 (2015-08-10)
Renamed entry-point script schema_inferer -> skinfer
Added json_validator
Dropped Python 2.6 support
Added more tests
0.1.2 (2015-08-04)
Bugfix: removed buggy -o argument
Automated PyPI release via Travis
0.1.1 (2015-05-01)
Support more complex string-type schemas
Attempt to infer JSON lines format instead of just failing
API cleanup: no need for long imports anymore
Updated documentation, added docstrings
Fixed merging schema for arrays with tuple vs list validation
Fixed compatibility issues with Python 2.6
Improved test coverage, added end-to-end tests
0.1.0 (2015-03-03)
First release on PyPI.
Metadata
Release files for skinfer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| skinfer-0.2.0.tar.gz | 22.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skinfer-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 32.4 kB
Release files / skinfer-0.2.0.tar.gz
| Download URL | skinfer-0.2.0.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97cee8e66c3e223efa61062a5b01929e5202b4444a7b7bedb57b3296aabb503a
|
|
BLAKE2b-256 checksum How to use checksums |
9bfe0b0431ad17a08dbd6346a5e20ead328e66f960dce732bf2d1be0ba18d00b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / skinfer-0.2.0-py2.py3-none-any.whl
| Download URL | skinfer-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
032d1eaa6b44e145a258f04cab54e267f6240d1bf854ba6cd1d721c5cf578179
|
|
BLAKE2b-256 checksum How to use checksums |
41bf34f0729bffbc48a8c4fa12fd18ab45c57e34e266b049f8ca0ce7a724fbd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |