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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?