sylambar — Local Datastore

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

Lightweight offline-first local datastore using zlib-compressed JSON files. Provides full CRUD operations, thread-safe concurrent access, and atomic writes — using only Python's standard library. 60-80% smaller than raw JSON.

Features

Zlib Compression▾
Data is stored as zlib-compressed JSON — 60-80% smaller than raw JSON for typical data.

Compression is transparent: automatically applied on write, automatically reversed on read. The compression ratio depends on data entropy — text-heavy JSON achieves 3-5x compression.
Full CRUD API▾
store = Store('collection_name')

store.set(key, value) — create or replace
store.get(key) → value or None
store.update(key, patch) — merge patch into existing record
store.delete(key) → True/False
store.all() → list of all records
store.find(filter_dict) → list of matching records
store.page(limit, skip) → paginated results

Schema-free: store any JSON-serializable Python object.
Atomic Writes — Zero Data Loss▾
Write to temporary file first, then atomically rename to final path. This guarantees that a crash, power loss, or OS error during write cannot produce a partially-written or corrupted file.

The final file is either fully updated or entirely unchanged. No intermediate state is ever visible.
Thread-Safe Concurrent Access▾
Uses two layers of protection:
1. threading.RLock — in-process mutual exclusion
2. OS-level file lock — prevents corruption from multiple processes

Safe for multi-thread, single-process use. For multi-process use, the OS file lock provides protection.
Zero External Dependencies▾
json · zlib · threading · pathlib · tempfile — Python standard library only. No pip install required. No network calls. Works fully offline.
Storage Format▾
Each collection is a single .sylambar file containing zlib-compressed JSON:

{
'meta': {'version': 1, 'created': timestamp, 'count': N},
'records': {'key1': {...}, 'key2': {...}},
'indexes': {'field': {'value': ['key1', ...]}}
}

sylambar — Yerel Veri Deposu

Zlib Sıkıştırmalı JSON · CRUD · Thread Güvenli · Atomik Yazma

Açık KaynakMITPythonÇevrimdışı

Zlib sıkıştırmalı JSON dosyaları kullanan hafif yerel veri deposu. Tam CRUD, thread güvenli eşzamanlı erişim ve atomik yazma — yalnızca Python stdlib.

Özellikler

Zlib Sıkıştırma▾
Veri zlib sıkıştırmalı JSON olarak saklanır — %60-80 daha küçük. Şeffaf: yazışta otomatik sıkıştır, okumada otomatik aç.
Tam CRUD API▾
store.set(key, value) · store.get(key) · store.update(key, patch) · store.delete(key) · store.all() · store.find(filter) · store.page(limit, skip)
Atomik Yazma▾
Önce geçici dosyaya yaz, sonra atomik olarak yeniden adlandır. Çökmede asla kısmi yazma olmaz.
Thread Güvenli▾
threading.RLock + OS dosya kilidi. Çok iş parçacıklı güvenli erişim.
Sıfır Bağımlılık▾
json · zlib · threading · pathlib · tempfile — yalnızca stdlib.
Depolama Formatı▾
Koleksiyon başına tek .sylambar dosyası: {meta, records, indexes}

sylambar — مخزن البيانات المحلي

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

مخزن بيانات محلي خفيف بـ JSON مضغوط Zlib. CRUD الكامل. بدون تبعيات.

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}

sylambar — Almacén Local

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

Almacén de datos local ligero con JSON Zlib. CRUD completo. Sin dependencias.

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}

sylambar — Armazenamento Local

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

Armazenamento local leve com JSON Zlib. CRUD completo. Sem dependências.

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}

sylambar — Локальное Хранилище

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

Лёгкое локальное хранилище данных с JSON Zlib. Полный CRUD.

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}

sylambar — 本地数据存储

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

使用Zlib压缩JSON的轻量级本地数据存储。完整CRUD。

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}

sylambar — Lokaler Datenspeicher

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

Leichter lokaler Datenspeicher mit Zlib JSON. Vollständiges CRUD.

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}

sylambar — Stockage Local

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

Stockage local léger avec JSON Zlib. CRUD complet.

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}

sylambar — ローカルデータストア

Zlib-compressed JSON · CRUD · Thread-safe · Atomic Writes

Open SourceMITPythonOffline

Zlib圧縮JSONを使用した軽量ローカルデータストア。完全なCRUD。

Features

Zlib Compression▾
60-80% smaller than raw JSON. Transparent compress/decompress.
Full CRUD▾
set · get · update · delete · all · find · page
Atomic Writes▾
Temp file + rename = no partial writes on crash.
Thread-Safe▾
threading.RLock + OS file lock.
Zero Dependencies▾
Python stdlib only.
Storage▾
One .sylambar file per collection = {meta, records, indexes}