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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getschema-0.2.11.tar.gz.
File metadata
- Download URL: getschema-0.2.11.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5719704a7ba2fe9b8dc78b2e60344b14468022b24ee6869287cdd226e17c8bb3
|
|
| MD5 |
8e244c91fd2c2480101d76035b86a119
|
|
| BLAKE2b-256 |
2259525147874d877c7168aca77ed965ff96076769570a0fd28cfe128ef41402
|
File details
Details for the file getschema-0.2.11-py3-none-any.whl.
File metadata
- Download URL: getschema-0.2.11-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdcefe0412de7f721214a4cf6593fce9d5243592ad3ab072f66fd359596a66a4
|
|
| MD5 |
e736ff514b714013411b69f350c6e3dc
|
|
| BLAKE2b-256 |
2b6ab25366761cd4d9dba05fde888d3d1b2a6899cc5fcfb99b7c7016a134bf85
|