MongoDB-like document store using SQLite
Project description
pylitemongo
English | فارسی
English
📌 Overview
pylitemongo is a lightweight, MongoDB-like document store built on top of SQLite. It offers a familiar API for managing JSON-like documents without requiring a separate database server. Ideal for small-scale applications, rapid prototyping, or embedded use cases.
✨ Features
- MongoDB-style operations (
insert,find,update,delete) - Powered by SQLite (no external dependencies)
- Fast and minimal footprint
- Written entirely in Python
- Seamless integration with existing Python projects
📦 Installation
pip install pylitemongo
🚀 Quick Start
from pylitemongo import Database
db = Database("mydata.db")
users = db["users"]
users.insert({"name": "Alice", "age": 25})
users.insert({"name": "Bob", "age": 30})
for user in users.find({"age": 25}):
print(user)
users.update({"name": "Alice"}, {"$set": {"age": 26}})
users.delete({"name": "Bob"})
📚 Documentation
- Database: SQLite-backed document store
- Collection: MongoDB-like methods (
insert,find,update,delete) - Supports basic query operators:
$eq,$gt,$lt,$set
🛠 Requirements
- Python 3.6+
- SQLite (included with Python)
🧪 Testing
git clone https://github.com/yourusername/pylitemongo.git
cd pylitemongo
pip install -r requirements-dev.txt
pytest
🤝 Contributing
We welcome contributions!
- Fork the repo
- Create a branch (
git checkout -b feature-name) - Commit your changes (
git commit -m "Add feature") - Push the branch (
git push origin feature-name) - Open a Pull Request
📜 License
MIT License
فارسی
📌 معرفی
pylitemongo یک کتابخانه سبک برای ذخیرهسازی دادهها به صورت سندمحور است که بر پایه SQLite ساخته شده. این ابزار برای پروژههای کوچک، نمونهسازی سریع یا استفاده در برنامههایی که نیاز به پایگاهداده سنگین ندارند، مناسب است.
✨ ویژگیها
- عملیات مشابه MongoDB (
insert،find،update،delete) - استفاده از SQLite به عنوان پایگاهداده داخلی
- سبک، سریع و بدون وابستگی خارجی
- پیادهسازی کامل با پایتون
- قابل استفاده در پروژههای پایتونی موجود
📦 نصب
pip install pylitemongo
🚀 شروع سریع
from pylitemongo import Database
db = Database("mydata.db")
users = db["users"]
users.insert({"name": "Ali", "age": 25})
users.insert({"name": "Sara", "age": 30})
for user in users.find({"age": 25}):
print(user)
users.update({"name": "Ali"}, {"$set": {"age": 26}})
users.delete({"name": "Sara"})
📚 مستندات
- Database: مدیریت پایگاهداده SQLite
- Collection: متدهای مشابه MongoDB (
insert،find،update،delete) - پشتیبانی از عملگرهای ساده مانند
$eq،$gt،$lt،$set
🛠 پیشنیازها
- پایتون 3.6 یا بالاتر
- SQLite (به صورت پیشفرض همراه پایتون)
🧪 تست
git clone https://github.com/yourusername/pylitemongo.git
cd pylitemongo
pip install -r requirements-dev.txt
pytest
🤝 مشارکت
خوشحال میشویم اگر مشارکت کنید!
- ریپازیتوری را Fork کنید
- یک Branch جدید بسازید (
git checkout -b feature-name) - تغییرات خود را Commit کنید (
git commit -m "افزودن ویژگی جدید") - Branch را Push کنید (
git push origin feature-name) - یک Pull Request باز کنید
📜 مجوز
این پروژه تحت مجوز MIT منتشر شده است.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 pylitemongo-0.1.0.tar.gz.
File metadata
- Download URL: pylitemongo-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25d9421696f7a15b05f1b39e2660e5407f61a589e31bc1fb4edf5a5d99b86589
|
|
| MD5 |
378047115f8ed9256dc7c15f350d92b0
|
|
| BLAKE2b-256 |
83f35eccd7f90a6080068dc907398a50e4d7a985291e17d36ca88fd26a4096e9
|
File details
Details for the file pylitemongo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pylitemongo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7726b0229b07210d47ba0ed216a8a189bc60eee13ae9e3ce84c4e3b5a1ae530b
|
|
| MD5 |
c67edfb22ef2476dd2420485c2152d0c
|
|
| BLAKE2b-256 |
2188d7a5e29b8dcc2425516120978601424d50cba2cf591877d44c2b84f9b3ee
|