Skip to main content

This project is designed to simplify working with the sqlite3 database, offers extensive features, and supports all types in Python.

Project description

ZDB - پایگاه داده Key-Value سبک بر پایه SQLite

ZDB یک دیتابیس Key-Value ساده و سبک با استفاده از SQLite است.
این کتابخانه امکاناتی مثل ذخیره‌سازی خودکار، صف تغییرات (queue)، کش داخلی، عملیات اتمیک و پشتیبانی از مدل‌ها را فراهم می‌کند تا ذخیره‌سازی محلی سریع و راحت باشد، بدون نیاز به دیتابیس کامل.

icon


ویژگی‌ها / Features

  • رابط کاربری ساده Key-Value (db[key] = value)
  • پشتیبانی از انواع داده‌ها: int, str, float, list, dict و ساختارهای تو در تو
  • Proxy types: ZValue, ZList, ZDict برای track خودکار تغییرات و ذخیره‌سازی
  • ذخیره خودکار و صف تغییرات برای عملکرد بهتر
  • کش داخلی برای افزایش سرعت خواندن داده‌ها
  • پشتیبانی از backup دستی یا دوره‌ای
  • عملیات اتمیک (increment, append_if_not_exists)
  • مدیریت تراکنش‌ها (with db.transaction():)
  • پشتیبانی اختیاری از Model با type hints و multi-table
  • پشتیبانی از namespace برای چند جدول در یک دیتابیس
  • رمزگذاری اختیاری با SQLCipher
  • نسخه سینک (sync) کامل، نسخه async جداگانه

نصب / Installation

نسخه سینک ZDB با کتابخانه‌های داخلی پایتون کار می‌کند:
sqlite3, json, threading, os, shutil و غیره.

pip install zdb

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zdatabase-0.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zdatabase-0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file zdatabase-0.1.tar.gz.

File metadata

  • Download URL: zdatabase-0.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for zdatabase-0.1.tar.gz
Algorithm Hash digest
SHA256 fdb490836c656938e841f5257a59c0296314bfd4ec243eb35124476662de8599
MD5 8fa2a9aa2a11b9bae882a66d2d2b0bce
BLAKE2b-256 ab36da38dc4f486954f461a0be91a57150a9b7cb4a65122b9d6fbe3d5d8a6d43

See more details on using hashes here.

File details

Details for the file zdatabase-0.1-py3-none-any.whl.

File metadata

  • Download URL: zdatabase-0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for zdatabase-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9913f4fb1ee0e2c20df860921ad306df519026e05ec9d0ef1946867bdac9b0c8
MD5 e63c9a695cf23be05f3b7e94b8f6646e
BLAKE2b-256 9d2be584f541b82b88a38b80d0bf3df5a491f0b61cc0b659fbfa12e6689c0a4b

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