Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frx08/jsonschema2popo

Converts a JSON Schema to a Plain Old Python Object class
https://github.com/frx08/jsonschema2popo

code-generator json-schema python

Last synced: about 2 months ago
JSON representation

Converts a JSON Schema to a Plain Old Python Object class

Awesome Lists containing this project

README

        

# JSONSCHEMA2POPO

A converter to extract 'Plain Old Python Object' classes from JSON Schema files.
Currenty compatible with python 3.4+

## Installation

pip install jsonschema2popo

## Usage

Basic:

jsonschema2popo -o /path/to/output_file.py /path/to/json_schema.json

object JSON encoding:

import json

g = GeneratedClass()
json.dumps(g.as_dict())