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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ac5bf5b7196e5218c3c58b3cd85fed47d243e6281aa37e107f27c17d5a9d56f
|
|
| MD5 |
5121712d1bf42b1b31b1e86c2e4e093c
|
|
| BLAKE2b-256 |
97e563a509f40fe539f4406e3086d9cc605067d9629369138a5003409c8c5d66
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e2361b2c83adfa7c95d8e625a597e5586f31a1bf7c0b386cfc3b5c06e9786f3
|
|
| MD5 |
fb538abbeee8f6b4102ca75b8fd7c399
|
|
| BLAKE2b-256 |
cb814cf4b581663f719b9aa9a0957079c2abf0e97a51c7f312f285ce10c6663c
|