Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/frx08/jsonschema2popo
- Owner: frx08
- License: mit
- Created: 2018-03-12T20:05:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T21:54:37.000Z (almost 4 years ago)
- Last Synced: 2024-04-24T16:24:39.302Z (8 months ago)
- Topics: code-generator, json-schema, python
- Language: Python
- Size: 21.5 KB
- Stars: 17
- Watchers: 3
- Forks: 14
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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())