Skip to main content

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

Metadata

Release files for Mukund 1.0.3

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

Source distribution (sdist)

Source distribution for Mukund 1.0.3
File Size Uploaded Provenance Actions
Mukund-1.0.3.tar.gz 5.8 kB Without provenance Details for Mukund-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Mukund 1.0.3
File Interpreter ABI Platform Actions
Mukund-1.0.3-py3-none-any.whl Python 3 none any Details for Mukund-1.0.3-py3-none-any.whl

Total release size: 12.1 kB

Release files / Mukund-1.0.3.tar.gz

Download URL Mukund-1.0.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7177e81148ab40b31973492af3811fec50da9121d0fb5260ff9c332f85c2ef4d
BLAKE2b-256 checksum
How to use checksums
e7ee72a81984d21ce31ab4b1b28dfe63d41a918ec9a10266cbe64ba9f4e6108b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / Mukund-1.0.3-py3-none-any.whl

Download URL Mukund-1.0.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8239e796719e40db5b8c08c6c8c0ec5e6582698939f2f1e1d92e6c620957d2e3
BLAKE2b-256 checksum
How to use checksums
b4f97c301afb06616b5c6c52471bb02d0bfb45cea61ed428c8d196bca7dbb237
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for Mukund 1.0.3

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

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