Skip to main content

An advance package to store data in JSON files and allow to store media with mapping and much more i recommend to atleast use it once

Project description

Mukund: A Comprehensive Storage Handling Wrapper

In the ever-evolving landscape of software development, the efficient handling of data storage is a pivotal aspect of creating robust and scalable applications. One such storage handling wrapper that has gained prominence is Mukund. Let's explore the key features, design principles, and functionalities of Mukund, providing an in-depth understanding of its role in simplifying database interactions.

Installing

Install and update using pip:

$ pip install -U Mukund

Origins and Purpose

Mukund is a JSON based storage handling wrapper designed to streamline database operations and provide a convenient interface for developers to interact with their data. Developed with simplicity and efficiency in mind, Mukund aims to empower developers by offering a user-friendly abstraction layer over traditional database interactions. The wrapper is particularly suited for applications that require persistent data storage and retrieval.

Key Components

1. Database Initialization

Mukund's initialization process begins with the creation of a database instance. Developers can instantiate Mukund by providing a unique name for the database. This simple yet crucial step establishes a connection to the storage location and sets the stage for subsequent interactions.

storage = Mukund("MukundX")

2. Collection Management

One of Mukund's core functionalities is the management of collections within the database. Collections serve as containers for related data, and Mukund provides a seamless mechanism to create or access them.

col = mukund_instance.database("students")

The wrapper abstracts away the intricacies of handling individual collection files, allowing developers to focus on the logical organization of their data.

3. Data Operations

Mukund supports various data operations, including insertion, retrieval, updating, and deletion. The Base class, part of Mukund's architecture, encapsulates these operations in a clean and modular fashion. For instance, adding a new key-value pair to a collection is as straightforward as calling the put method:

col.put("user_123", {"name": "Mukund", "age": 16, "email": "mukund@example.com"})

4. Querying

To enhance flexibility, Mukund incorporates querying capabilities. Developers can specify conditions for filtering data, enabling targeted retrieval based on predefined criteria. The query method facilitates complex queries and supports regular expressions for matching values.

result_above_25 = col.query(condition_func=lambda col: col.get("age", 0) > 15)

Design Principles

Mukund's design adheres to several key principles:

1. Simplicity

The wrapper prioritizes simplicity in both its usage and underlying implementation. With a minimalistic and intuitive code, developers can quickly integrate Mukund into their projects without the need for extensive training.

2. Extensibility

Mukund's design allows for easy extension and customization. The wrapper provides a solid foundation for developers to build upon, ensuring adaptability to diverse project requirements and future enhancements.

3. Error Handling

Error handling is an integral part of Mukund's design philosophy. The wrapper employs informative error messages and exceptions to guide developers in identifying and resolving issues efficiently.

A simple example

from Mukund import Mukund 

storage = Mukund("MukundX")

collection = storage.database("users")

Examples

See Example folder for examples

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Mukund-1.0.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Mukund-1.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file Mukund-1.0.3.tar.gz.

File metadata

  • Download URL: Mukund-1.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for Mukund-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7177e81148ab40b31973492af3811fec50da9121d0fb5260ff9c332f85c2ef4d
MD5 44105ea5868429a8f90fb09394222c25
BLAKE2b-256 e7ee72a81984d21ce31ab4b1b28dfe63d41a918ec9a10266cbe64ba9f4e6108b

See more details on using hashes here.

File details

Details for the file Mukund-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: Mukund-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for Mukund-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8239e796719e40db5b8c08c6c8c0ec5e6582698939f2f1e1d92e6c620957d2e3
MD5 38c65f5992c769c7615fa396225f3c7f
BLAKE2b-256 b4f97c301afb06616b5c6c52471bb02d0bfb45cea61ed428c8d196bca7dbb237

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page