getschema-0.2.9
توضیحات
Get jsonschema from sample records
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | getschema-0.2.9 |
| نام | getschema |
| نسخه کتابخانه | 0.2.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daigo Tanaka, Anelen Co., LLC |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/anelendata/getschema |
| آدرس اینترنتی | https://pypi.org/project/getschema/ |
| مجوز | - |
[](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)

---
Copyright © 2020~ Anelen Co., LLC
نیازمندی
| مقدار | نام |
|---|---|
| - | jsonpath-ng>=1.5.2 |
| - | python-dateutil>=2.8.1 |
| - | pyyaml>=5.1 |
| - | setuptools>=40.3.0 |
| - | simplejson==3.*,>=3.13.2 |
نحوه نصب
نصب پکیج whl getschema-0.2.9:
pip install getschema-0.2.9.whl
نصب پکیج tar.gz getschema-0.2.9:
pip install getschema-0.2.9.tar.gz