Skip to main content

SoketDB — a zero-setup, AI-smart JSON database built for developers who value speed, simplicity, and offline capability.

Project description

⚡ SoketDB v1 — Zero-Setup, AI-Smart JSON Database

No switch to turn on.
SoketDB is a lightweight, offline-first, AI-powered database that runs instantly — no setup, no servers.


🧠 Overview

SoketDB is a plug-and-play JSON database with an AI-driven query engine.
It lets you store, query, and sync data locally or in the cloud — without needing MySQL, PostgreSQL, or MongoDB.

Built for developers who just want to build, SoketDB merges the simplicity of JSON with the power of SQL and AI.


🚀 Features

  • Zero Setup — Works out of the box, no installations or daemons.
  • 💾 JSON-Native Storage — Every table is a readable JSON file.
  • 🧠 AI Query Engine — Translate natural language into SQL-like commands.
  • ☁️ Cloud Backup — Optional sync to Hugging Face, Google Drive, Dropbox, or AWS S3.
  • 🔐 Thread-Safe Execution — Prevents corruption in multi-threaded access.
  • 🧩 Configurable Storage — Local, hybrid, or full cloud mode.
  • 🧱 System Tables — Built-in logs, meta tracking, and analytics support.
  • 🌍 Offline-First Philosophy — Works anywhere, even without the internet.

🧰 Installation

pip install soketdb

Or install manually:

git clone https://github.com/pythos-team/soketdb.git
cd soketdb
python setup.py install


---

🏁 Quick Start

from soketdb import database

    # Example 1: Regular database (no encryption)
    print("=== Regular Database ===")
    db_regular = database("my_app")
    db_regular.execute("CREATE TABLE users (id, name, email)")
    db_regular.execute("INSERT INTO users DATA = [{'id': 1, 'name': 'John', 'email': 'john@example.com'}]")
    result = db_regular.query("show all users")
    print(f"Regular DB Result: {result}")
    
    # Example 2: Production database with encryption
    print("\n=== Production Database ===")
    db_production = database("my_secure_app", production=True)
    db_production.execute("CREATE TABLE secure_users (id, name, email, password_hash)")
    db_production.execute("INSERT INTO secure_users DATA = [{'id': 1, 'name': 'Alice', 'email': 'alice@secure.com', 'password_hash': 'hash123'}]")
    result = db_production.query("count secure users")
    print(f"Production DB Result: {result}")
    
    # Example 3: Using existing encryption key
    print("\n=== Using Existing Encryption Key ===")
    # You would use the key that was displayed when you first created the production database
     db_existing = database("my_secure_app", production=True, encryption_key="your_encryption_key_here")


---

💡 Natural Language Queries

db.query("show all users where password is 1234") AI converts this into:

SELECT * FROM users WHERE password='1234'


---

☁️ Cloud Sync Example

db = database(
    "my_project",
    storage="huggingface",
    token="hf_xxx_your_token",
    path="alex/soketdb_storage"
)

You can also use Google Drive or Dropbox for automatic backups.


---

📊 Folder Structure

my_project/
│
├── users.json
├── plugins.json
├── system_meta.json
└── logs/


---

🧩 Supported Commands

Command	Description

CREATE TABLE	Create a new table
INSERT INTO	Add new JSON data
SELECT	Query records
UPDATE	Modify existing records
DELETE FROM	Delete specific rows
DROP TABLE	Remove a table completely



---

💬 Philosophy

> “Databases shouldn’t require a switch to turn on.
SoketDB runs, stores, and syncs  instantly.”
— Alex Austin, Creator of SoketDB




---

🧱 Use Cases

Offline-first or hybrid AI projects

Local testing without cloud DBs

Quick data persistence for tools, bots, or microservices

Lightweight web apps and scripts

AI/ML experiments needing quick storage



---

🔐 License

Licensed under the MIT License.
Copyright © 2025 Alex Austin


---

🌟 Tagline

> SoketDB  Simple. Smart. Secure.
The database that runs even when everything else is off.



---

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

soketdb-1.5.0.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

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

soketdb-1.5.0-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file soketdb-1.5.0.tar.gz.

File metadata

  • Download URL: soketdb-1.5.0.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for soketdb-1.5.0.tar.gz
Algorithm Hash digest
SHA256 b73266b372f7e08d24a36bbdef3fdfd72c258f1ac5f49c84da5fadbbd314da72
MD5 6572a9a74418364f3b0ed9544fc093b9
BLAKE2b-256 e14f01ac9f538a1686ad310c1154fb2229383e0acc0b280e75a38e8eda95d6bd

See more details on using hashes here.

File details

Details for the file soketdb-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: soketdb-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for soketdb-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68fe2cbdf950caf7434b0a8e11da15051565669d2a8d20dc487acddb84cad177
MD5 45ccd01bf695893956ef79c8fa6c0d85
BLAKE2b-256 dc952949f0bdcc2b8fc588e4d2aa514eb3f130c7db4d969cd9b5d3f6f16e2c7c

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