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.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for strip.pysondb-1.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22aa85b08d89cd92e712537261a053893665e428fe3fbce0ca718cc7a57ec233 |
|
MD5 | ac3ef9bc83d25d20b386ffe3f95b7b8c |
|
BLAKE2b-256 | 1eef237ddf5a2eabc5974b03720f13c6cde673b6229a9311c792c21a1efee02c |