Skip to main content

Build Status

💥 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

ANELEN

Copyright © 2020~ Anelen Co., LLC

Metadata

Release files for getschema 0.2.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getschema 0.2.11
File Size Uploaded
getschema-0.2.11.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for getschema 0.2.11
File Interpreter ABI Platform
getschema-0.2.11-py3-none-any.whl Python 3 none any Details

Total release size: 22.1 kB

Release files / getschema-0.2.11.tar.gz

Download URL getschema-0.2.11.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5719704a7ba2fe9b8dc78b2e60344b14468022b24ee6869287cdd226e17c8bb3
BLAKE2b-256 checksum
How to use checksums
2259525147874d877c7168aca77ed965ff96076769570a0fd28cfe128ef41402
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / getschema-0.2.11-py3-none-any.whl

Download URL getschema-0.2.11-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdcefe0412de7f721214a4cf6593fce9d5243592ad3ab072f66fd359596a66a4
BLAKE2b-256 checksum
How to use checksums
2b6ab25366761cd4d9dba05fde888d3d1b2a6899cc5fcfb99b7c7016a134bf85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.2.11 This release

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page