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.2.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lemodb-1.0.2.tar.gz.
File metadata
- Download URL: lemodb-1.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce37aeb3378f30a7c28e33f1ef99df6de82ca5877570f368f7bd11b73e98b18a
|
|
| MD5 |
ca52621a22318cf571d2f49d76aeaa10
|
|
| BLAKE2b-256 |
383ce235e845c93dbc547550e10d05acdcdaac3e53896dcec0df1fc290f6b4f4
|
File details
Details for the file lemodb-1.0.2-py3-none-any.whl.
File metadata
- Download URL: lemodb-1.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8cdf06f0ef178b2bfb4363a9b367a9530fd607708e28ea5d78fdbefe10b5e89
|
|
| MD5 |
490fbebb3e151cc3c281300c75284991
|
|
| BLAKE2b-256 |
23a8c242474a3cfaa6079435caa1e43c2a3d1fa9b0dc36dee2491dc5969cb56f
|