Skip to main content

Transpile JSON schemas into other textual representations.

Project description

json-rm

Parse JSON Schemas into relational model and transpile into other textual representations.

Command line usage

jst <command> <schema_path>

Examples

Use the 'simple' formatter on a schema:

$ jst simple resources/schemas/1.2.246.537.6.1506.7000.2022.1.10.json

Use the 'postgres' formatter on a schema:

$ jst postgres resources/schemas/1.2.246.537.6.1506.7000.2022.1.10.json

Using from your Python code

import json_rm
from json_rm.formatters import SimpleFormatter

schema = json_rm.JSONSchema.from_file("schema.json")
formatter = SimpleFormatter()

print(schema.render(formatter))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

json-rm-0.0.1.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

json_rm-0.0.1-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page