getschema


Namegetschema JSON
Version 0.2.9 PyPI version JSON
download
home_pagehttps://github.com/anelendata/getschema
SummaryGet jsonschema from sample records
upload_time2024-07-17 01:01:28
maintainerNone
docs_urlNone
authorDaigo Tanaka, Anelen Co., LLC
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            [![Build Status](https://travis-ci.com/anelendata/getschema.svg?branch=main)](https://travis-ci.com/anelendata/getschema)

💥 New: jsonpath support for the record_level parameter in getschema.infer_schema function.

# getschema

Get jsonschema from sample records

Command line usage:
```
usage: getschema [-h] [--indent INDENT] [--type TYPE] [--skip SKIP] [--lower]
                 [--replace_special REPLACE_SPECIAL] [--snakecase]
                 data

positional arguments:
  data                  json record file

optional arguments:
  -h, --help            show this help message and exit
  --indent INDENT, -i INDENT
                        Number of spaces for indentation
  --type TYPE, -t TYPE  Record format (json, yaml, csv)
  --skip SKIP, -s SKIP  Skip first n records. Don't skip the header row.
  --lower, -l           Convert the keys to lower case'
  --replace_special REPLACE_SPECIAL, -r REPLACE_SPECIAL
                        Replace special characters in the keys with the
                        specified string
  --snakecase, -n       Convert the keys to 'snake_case'
getschema file.json
```

Module functions:
(See impl.py)
- infer_schema
- infer_from_json_file
- infer_from_yaml_file
- infer_from_csv_file
- fix_type

Example projects using getschema:
- https://github.com/anelendata/tap-rest-api
- https://github.com/anelendata/tap-bigquery

## Original repository

- https://github.com/anelendata/getschema

# About this project

This project is developed by
ANELEN and friends. Please check out the ANELEN's
[open innovation philosophy and other projects](https://anelen.co/open-source.html)

![ANELEN](https://avatars.githubusercontent.com/u/13533307?s=400&u=a0d24a7330d55ce6db695c5572faf8f490c63898&v=4)
---

Copyright © 2020~ Anelen Co., LLC



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/anelendata/getschema",
    "name": "getschema",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Daigo Tanaka, Anelen Co., LLC",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/78/d4/54023ce7feb56eb03dee71a100fc9d8d6e73a7cf896b30226e0d78672b5a/getschema-0.2.9.tar.gz",
    "platform": null,
    "description": "[![Build Status](https://travis-ci.com/anelendata/getschema.svg?branch=main)](https://travis-ci.com/anelendata/getschema)\n\n\ud83d\udca5 New: jsonpath support for the record_level parameter in getschema.infer_schema function.\n\n# getschema\n\nGet jsonschema from sample records\n\nCommand line usage:\n```\nusage: getschema [-h] [--indent INDENT] [--type TYPE] [--skip SKIP] [--lower]\n                 [--replace_special REPLACE_SPECIAL] [--snakecase]\n                 data\n\npositional arguments:\n  data                  json record file\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --indent INDENT, -i INDENT\n                        Number of spaces for indentation\n  --type TYPE, -t TYPE  Record format (json, yaml, csv)\n  --skip SKIP, -s SKIP  Skip first n records. Don't skip the header row.\n  --lower, -l           Convert the keys to lower case'\n  --replace_special REPLACE_SPECIAL, -r REPLACE_SPECIAL\n                        Replace special characters in the keys with the\n                        specified string\n  --snakecase, -n       Convert the keys to 'snake_case'\ngetschema file.json\n```\n\nModule functions:\n(See impl.py)\n- infer_schema\n- infer_from_json_file\n- infer_from_yaml_file\n- infer_from_csv_file\n- fix_type\n\nExample projects using getschema:\n- https://github.com/anelendata/tap-rest-api\n- https://github.com/anelendata/tap-bigquery\n\n## Original repository\n\n- https://github.com/anelendata/getschema\n\n# About this project\n\nThis project is developed by\nANELEN and friends. Please check out the ANELEN's\n[open innovation philosophy and other projects](https://anelen.co/open-source.html)\n\n![ANELEN](https://avatars.githubusercontent.com/u/13533307?s=400&u=a0d24a7330d55ce6db695c5572faf8f490c63898&v=4)\n---\n\nCopyright © 2020~ Anelen Co., LLC\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Get jsonschema from sample records",
    "version": "0.2.9",
    "project_urls": {
        "Homepage": "https://github.com/anelendata/getschema"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9875f215200ec934ca1ed1aafb3bbdef27dfab4f2df38d7d2dde77ca8c9a6adb",
                "md5": "113e39445de7dc1f433ff99a4f968929",
                "sha256": "586081e314f8d1b4f4d15c8a6bc42d0c6e4f28dcd50a13252dfbae3aee2a4d03"
            },
            "downloads": -1,
            "filename": "getschema-0.2.9-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "113e39445de7dc1f433ff99a4f968929",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11508,
            "upload_time": "2024-07-17T01:01:27",
            "upload_time_iso_8601": "2024-07-17T01:01:27.079902Z",
            "url": "https://files.pythonhosted.org/packages/98/75/f215200ec934ca1ed1aafb3bbdef27dfab4f2df38d7d2dde77ca8c9a6adb/getschema-0.2.9-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "78d454023ce7feb56eb03dee71a100fc9d8d6e73a7cf896b30226e0d78672b5a",
                "md5": "757d7222ae624aaae7f6ab6b0a8e4ee9",
                "sha256": "ce562884b58604b23f751dde387482552acfb21296d2ad82ddbac20d56b377c3"
            },
            "downloads": -1,
            "filename": "getschema-0.2.9.tar.gz",
            "has_sig": false,
            "md5_digest": "757d7222ae624aaae7f6ab6b0a8e4ee9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10615,
            "upload_time": "2024-07-17T01:01:28",
            "upload_time_iso_8601": "2024-07-17T01:01:28.261030Z",
            "url": "https://files.pythonhosted.org/packages/78/d4/54023ce7feb56eb03dee71a100fc9d8d6e73a7cf896b30226e0d78672b5a/getschema-0.2.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-17 01:01:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "anelendata",
    "github_project": "getschema",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "getschema"
}
        
Elapsed time: 1.16189s