Skip to main content

convert json to relational db

Project description



Just need defined a json object, then you can save it in to a relational DB like MySQL PostgreSQL or other DB.

Reason To Write This FrameWork


from json2db import JFactory
d = {"aa": 1, "bb": 2, "brother": {"name": "jack", "namess": [{"other": "jack"}]}, 'sons': [{"son_name": "aa"}]}

factory = JFactory()
model = factory.from_json(data=d, root_name="data")
model.create_tables_in_db()[("aa", 1)], limit=2)

Project details

Download files

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

Files for json2db, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size json2db-1.0.1.tar.gz (9.1 kB) File type Source Python version None Upload date Hashes View
Filename, size json2db-1.0.1-py2.py3-none-any.whl (10.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page