Skip to main content

A lightweight, schema-aware, CSV-based database with auto-increment IDs

Project description

lemoDB

A lightweight, schema-aware, CSV-based database for Python.

Installation

pip install lemoDB

Quick Start

from lemoDB import LemonDB

# Define schema
schema = {
    "username": "string",
    "email": "string",
    "age": "integer"
}

# Create database
db = LemonDB(name="users", schema=schema)

# Save records
db.save(
    ("alice", "alice@example.com", 25),
    ("bob", "bob@example.com", 30)
)

# Query data
users = db.findAll()
alice = db.find({"username": "alice"})

# Update
db.updateOne({"username": "alice"}, {"age": 26})

# Delete
db.deleteOne({"username": "bob"})

Features

  • Schema validation with type checking
  • Auto-increment IDs
  • Simple CRUD operations
  • CSV-based storage
  • Zero external dependencies

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

lemodb-1.0.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

lemodb-1.0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lemodb-1.0.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for lemodb-1.0.3.tar.gz
Algorithm Hash digest
SHA256 6ac5bf5b7196e5218c3c58b3cd85fed47d243e6281aa37e107f27c17d5a9d56f
MD5 5121712d1bf42b1b31b1e86c2e4e093c
BLAKE2b-256 97e563a509f40fe539f4406e3086d9cc605067d9629369138a5003409c8c5d66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lemodb-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for lemodb-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e2361b2c83adfa7c95d8e625a597e5586f31a1bf7c0b386cfc3b5c06e9786f3
MD5 fb538abbeee8f6b4102ca75b8fd7c399
BLAKE2b-256 cb814cf4b581663f719b9aa9a0957079c2abf0e97a51c7f312f285ce10c6663c

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