Get jsonschema from sample records
Project description
💥 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:
Original repository
About this project
This project is developed by ANELEN and friends. Please check out the ANELEN's open innovation philosophy and other projects
Copyright © 2020~ Anelen Co., LLC
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getschema-0.2.6.tar.gz
(9.9 kB
view hashes)
Built Distribution
getschema-0.2.6-py3-none-any.whl
(11.2 kB
view hashes)
Close
Hashes for getschema-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a069d265a3fa6763db1aeb63972391277ec59c4685c6771324351223496bff3 |
|
MD5 | 90f26c8e3eb33da69e605a32e4791d32 |
|
BLAKE2b-256 | 390132676019629b40318a145928d25876033e8ef7b60c35b4230809bd395c64 |