Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrapinghub/skinfer
Skinfer is a tool for inferring and merging JSON schemas
https://github.com/scrapinghub/skinfer
Last synced: 10 days ago
JSON representation
Skinfer is a tool for inferring and merging JSON schemas
- Host: GitHub
- URL: https://github.com/scrapinghub/skinfer
- Owner: scrapinghub
- License: bsd-3-clause
- Created: 2014-12-17T22:45:44.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T09:06:25.000Z (7 months ago)
- Last Synced: 2024-04-24T14:46:20.881Z (7 months ago)
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 139
- Watchers: 125
- Forks: 18
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- awesome-starred - scrapinghub/skinfer - Skinfer is a tool for inferring and merging JSON schemas (others)
README
============================================
Skinfer - tool for working with JSON schemas
============================================.. image:: https://badge.fury.io/py/skinfer.png
:target: http://badge.fury.io/py/skinfer.. image:: https://travis-ci.org/scrapinghub/skinfer.png?branch=master
:target: https://travis-ci.org/scrapinghub/skinfer.. image:: https://pypip.in/d/skinfer/badge.png
:target: https://pypi.python.org/pypi/skinferSimple 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 dataExample 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