convert json to relational db
Project description
Json2DB
Python3.6+
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
Example
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()
model.store(data=d)
model.search(search_args=[("aa", 1)], limit=2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json2db-1.0.1.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for json2db-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f566a1a251832a0f1a79ad46f746cd6fc16a9babcbd70658272dd9f30fb0dec0 |
|
MD5 | d75d76074f27d28c1ce1269dbf996d0c |
|
BLAKE2b-256 | c7bb9f834d98a8dce04773e7b0f0c24a506bd10a27922b680912d57e37ea66b1 |