Skip to main content

strip.pysondb

GitHub Azure DevOps builds PyPI

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.
  • DB clustering (User can access / modify multiple DB from a single point / class)

✏️️ 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)
    
    from pysondb import DB
    from pysondb import Cluster
    
    users = DB(keys=["username", "password"])
    posts = DB(keys=["username", "title", "content"])
    
    c = Cluster({"users": users, "posts": posts})
    c.users.add({"username": "adwaith", "password": "123@45"})
    c.posts.add("username": "adwaith", "title": "Hello", "content": "Hello WOrld")
    c.commit("cluster.json", indent=2)  # use a single json file to store all the data from all the DB in the cluster
    

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 it, 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.


Metadata

Release files for strip.pysondb 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strip.pysondb 1.5.1
File Size Uploaded Provenance
strip.pysondb-1.5.1.tar.gz 7.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for strip.pysondb 1.5.1
File Interpreter ABI Platform
strip.pysondb-1.5.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 14.8 kB

Release files / strip.pysondb-1.5.1.tar.gz

Download URL strip.pysondb-1.5.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ad6083d14f65b03b829990fc8806a6c160f3809e12e8e13f8269fe24ba7a03a8
BLAKE2b-256 checksum
How to use checksums
2ca7802f2969bccb5b11681a9d78d2a320f8ec177d86ea568c0ef9ed7ed4e840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / strip.pysondb-1.5.1-py2.py3-none-any.whl

Download URL strip.pysondb-1.5.1-py2.py3-none-any.whl
Size 7.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
912e0a8daca4000c0144c8eeeff867db7515676ca4c0b36b75d8c95fc784cbef
BLAKE2b-256 checksum
How to use checksums
4165e9cc6df2367e74c0530d49b788b726ea478f068727c9f2ef6bcbbc9800ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for strip.pysondb 1.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page