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.1.tar.gz (7.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.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lemodb-1.0.1.tar.gz
  • Upload date:
  • Size: 7.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.1.tar.gz
Algorithm Hash digest
SHA256 eea44363de86f4505cd781c2b6e98e76ab9261c70868de853d8d74246f9426d0
MD5 f2e53ad198547862df0769fbee505788
BLAKE2b-256 fbabfdc910732f6128a63f1cd3f3e51ddf4ac243b1b741c0cf0229e61df9e8a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lemodb-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a3f0d3a01077ce15452513e4e35137427e59cc9688d30ad4fae92d05eeee2dd6
MD5 8430e629eb3ebefe15cbcb287d3d08dd
BLAKE2b-256 7ed299e4302cd1125fc12bc258fc8c91482e9d35d39a017fcd4fcccbfb13405d

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