Get jsonschema from sample records
Project description
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, 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_csv_file
- fix_type
Example projects using getschema:
Original repository
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.1.0.tar.gz
(5.1 kB
view hashes)
Built Distributions
getschema-0.1.0-py3.6.egg
(10.5 kB
view hashes)
getschema-0.1.0-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for getschema-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb1ca2d523cfccff361a582fb89fd90dd1dbbb968aeeb8d725f23a93e90b07c1 |
|
MD5 | 018dbc798954102d4d3c40d04fa0c045 |
|
BLAKE2b-256 | 613d518e7300e6003cbcd5ca9626c60be6cc474ab0033ab9e5304c0cf810488b |