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
-
Get the latest non-released version
pip3 install git+https://github.com/Adwaith-Rajesh/strip.pysondb.git@master
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.0.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file strip.pysondb-1.0.0.tar.gz
.
File metadata
- Download URL: strip.pysondb-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34329c3caf28361c81cbe6fea24337868ede0ed8098959ae424a36f64132b0eb |
|
MD5 | 53f115139112f0e483bba9aad9250ff9 |
|
BLAKE2b-256 | 6446e2de12dd0e824d26746ee509a75d785e7d0618793274f09c3c08b0cd2959 |
Provenance
File details
Details for the file strip.pysondb-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: strip.pysondb-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8fc95ed1b7f60df6b33763e1b75682180a266e78a3e3f156b88f01f6c0c0b9c |
|
MD5 | cd3ac76ddfca675cd4b50310bedfc423 |
|
BLAKE2b-256 | 191d6b7734bd0f560f33de170b6e9204b3bb0d38404271f8d6fa6d7495975d5e |