A package to simplify the use of json as a way to store data in Python
Project description
Python Local Database
A python package made to simplify the use of json as a mean to organize and store data in python.
Installation
Use the package manager pip to install Python Local Database.
pip install pylocaldatabase
Usage
from pylocaldatabase import pylocaldatabase
# define database file and assign databasecontroller instance to var dbcontroll
dbcontroll = pylocaldatabase.databasecontroller(path="file.json")
# create database file 'file.json'
dbcontroll.makeDatabase()
# create document
dbcontroll.insertDocument({}, "documentName")
# assign the document we created
document = dbcontroll.getDocument("documentName")
# insert Item to the document
document.insertItem("ItemName", {"Property":"Property Value"})
# read Item data
itemData = document.getItem("ItemName").get()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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
pylocaldatabase-1.0.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pylocaldatabase-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eeddf50abbaccb9b59b04c79b0864abe18b89f655d9095fe86c50ad157724b8 |
|
MD5 | c0f312b0879565dec9995369011b2c9d |
|
BLAKE2b-256 | 9da97a859920bb607b3971a8477f7f10db2e303467ffeac416c2946b7c65c927 |