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.
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.
- A new methods called
pop
is added. - The user is supposed to pass the keys / column name for the DB during initialization of the
DB
class.
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.0.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for strip.pysondb-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d9f620bacc18e9098f8aa4e5d6ad1cd6b8e10ed6888f847208985efc550d3e1 |
|
MD5 | b01dbc345ffb10ae662e2939df38e243 |
|
BLAKE2b-256 | 35cb8ad3978228498c3a27d1e8e98c29c04fd6527a9ea73bef6c2d0b3324237f |