Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

getschema

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getschema

Get jsonschema from sample records

  • 0.2.9
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc