skinfer

Skinfer is a tool for inferring and merging JSON schemas

  • 所有者: scrapinghub/skinfer
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

============================================
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/skinfer

Simple tool to infer and/or merge JSON schemas

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

主要指标

概览
名称与所有者scrapinghub/skinfer
主编程语言Python
编程语言Python (语言数: 2)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2014-12-17 22:45:44
推送于2024-04-24 09:06:25
最后一次提交2016-06-09 10:21:10
发布数4
最新版本名称0.2.0 (发布于 )
第一版名称0.1.0 (发布于 2015-03-03 22:19:24)
用户参与
星数139
关注者数120
派生数20
提交数62
已启用问题?
问题数6
打开的问题数5
拉请求数3
打开的拉请求数3
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?