Skip to main content

A pseudo NoSQL database

Project description


RunDb is not exactly a database. It is similar to TinyDB <>__ on storing files as json.

The main point of this library is to help the user on storing and loading data.


  • NoSql with tools to simulate relational
  • Table are fully loaded
  • Query are done using python
  • Data must be serializable, but no format is imposed: some data may be stored as dict, while other are mere strings
  • You can specify a serialization and deserialization function to automaticly convert the values

.. code:: python

import RunDB
from pathlib import Path

db_path = Path("testRunDB")  # The folder containing the tables as json files

db = RunDB.Database(db_path)  # This will create the folder if it is missing, then loading all tables
User = db.table("user")  # Create or get table labeled as "user", it's file is called user.json
User["hello"] = {"name": "World"}

res = User.filter(lambda d: isinstance(d, dict) and "36" in d["name"])  // return a subtable

db["test"]["new"] = {"name": "new data"}

db.dump_all()  # Dump all tables

Nb: Database are simply Group of Table, We can register Tables from somewhere else or simply use a Table without Database object


  • add other serialization as csv or yaml

Project details

Download files

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

Files for rundb, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size rundb-0.4-py3-none-any.whl (17.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rundb-0.4.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page