Skip to main content

DummyDB

DummyDB is a lightweight, in-memory Python database for testing, prototyping, and mocking database operations without installing any external database servers.

It mimics the basic behavior of real databases like MongoDB or SQLite but runs entirely in memory. Ideal for developers who want fast CRUD operations without setup overhead.

PyPI version License

Features

  • In-memory storage (no installation required)
  • Table creation and management
  • CRUD operations: insert, find, update, delete
  • Save and load database to JSON
  • Lightweight and zero-dependency
  • Perfect for unit testing, demos, and small projects

Installation

pip install dummydb

Functions

> insert(data: dict)
> find(query: dict)
> update(query: dict, new_data: dict)
> delete(query: dict)
> to_json()
> create_table(name: str)
> get_table(name: str)
> drop_table(name: str)
> save_to_file(filepath: str)
> load_from_file(filepath: str)

Example Usage

    from dummydb import Database

    # Create a database
    db = Database()

    # Create a table
    users = db.create_table("users")

    # Insert records
    users.insert({"name": "Vibhakar", "age": 17})
    users.insert({"name": "Shiju", "age": 16})

    # Query records
    print(users.find({"age": 17}))

    # Update records
    users.update({"name": "Shiju"}, {"age": 17})

    # Delete records
    users.delete({"name": "Vibhakar"})

    # Save/load
    db.save_to_file("dummydb.json")
    db.load_from_file("dummydb.json")

Metadata

Release files for dummydb 0.1.6

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

Source distribution (sdist)

Source distribution for dummydb 0.1.6
File Size Uploaded Provenance
dummydb-0.1.6.tar.gz 4.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.2 kB

Release files / dummydb-0.1.6.tar.gz

Download URL dummydb-0.1.6.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
24f2a6c7b1ddcc23ac0494aa0ef1167027455574b2519a09547468f23a6238fd
BLAKE2b-256 checksum
How to use checksums
5bc021f7f680ad06d9c8a55e34c176b482e83fa97b67c9507676c0651d3a7c6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / dummydb-0.1.6-py3-none-any.whl

Download URL dummydb-0.1.6-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f1e1091266ec2c9da6e94bc67b70c9a4324ec469df76b4289049217ff74e1b4
BLAKE2b-256 checksum
How to use checksums
7a28f2d78f873e0442882c3d01ce6d2fc9c5a41472bdbe3f92ee406365fabeb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for dummydb 0.1.6

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