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,
🔻 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.
🥰 Contributing to strip.pysondb
Read the CONTRIBUTING.md for the code design style and linting preferences.
Once you've gone though follow theses steps.
- Fork this repo.
- Create a new branch from master. (Very important)
- Make your required changes with good commit messages.
- Write the test to make sure that your changes work.
- Create a pull request.
- Bug the maintainers until it get merged 😊.
🙊 Have any issue or feature request.
Create an issue or join our Discord server Here.
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.2.2.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file strip.pysondb-1.2.2.tar.gz
.
File metadata
- Download URL: strip.pysondb-1.2.2.tar.gz
- Upload date:
- Size: 5.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 | 8dcfe00ceb2617f9b2752b3b6f4484bd414afef294ba389eb5476a6866e3fe20 |
|
MD5 | e1c9946b785b2f0343eb1fbf0da48bf3 |
|
BLAKE2b-256 | 95bd52ee140c5f59d4b24712fa69c8e7991f23558cd1478e291c61ea044f23f5 |
Provenance
File details
Details for the file strip.pysondb-1.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: strip.pysondb-1.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.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 | 29ddf0148a742af0a84c2d215e68ac717d95d06a8920b37b4b6f0e3fe51a6e70 |
|
MD5 | 044c3c0528bc3ddf739a6069678a979b |
|
BLAKE2b-256 | b3ed00f7853d3299b957f34b626c203d4da5eb150dbeb28b242041735827bfc2 |