A stripped-down version of pysondb.
Project description
strip.pysondb
A stripped-down version of pysondb by Fredy Somy.
Features.
- No third party packages needed
- No CLI
- No ImageUtils
- Use of python naming conventions in functions and classes.
- Just the code required to perform CRUD operation on JSON DB.
- Users can generate custom id's for their data.
Note
Even though it's called a stripped-down version, there are some huge differences in the way this package works.
- The data is not saved to file instantly, instead a methods needs to be called in order to do that.
- The user is supposed to pass the keys / column name for the DB during initialization of the
DB
class. - Some of the new methods that are not derived from PysonDB are,
pop
commit
load
values
set_id_generator
Installation
-
Delete the original pysondb before installing this version. (Might cause conflicts)
-
From Pypi
pip3 install strip.pysondb
Usage
-
tl;dr
from pysondb import DB db = DB(keys = ["name", "age"]) db.add({ "name": "name1", "age": 1 }) print(db)
Click here to see the complete docs.
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
strip.pysondb-1.1.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for strip.pysondb-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d2acfa07423e2a001a7e571ae652fcda2c4579b1055c61d454d9dda22d5937 |
|
MD5 | eed2a2684d8e10467e1335644d49c344 |
|
BLAKE2b-256 | acc6015d2c4bf8b37e1944f38617e2b31042fc098d51fc8599c3902cfaed2441 |