Skip to main content

SoketDB — a zero-setup, 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.1.tar.gz (58.6 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.1-py3-none-any.whl (57.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: soketdb-1.5.1.tar.gz
  • Upload date:
  • Size: 58.6 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.1.tar.gz
Algorithm Hash digest
SHA256 24c999c753e9cac0106c4ddef008d41e2adb39cf250912f81795f9d295d3978a
MD5 7314675ef2c94221c94d22f156c5bf8c
BLAKE2b-256 aca630d533f897d90960aae1bdea218f4f13c699bde9d8fccb9243fe43925caa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: soketdb-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 57.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b5becb824065ec8299ed9efecf251822e3f9ada547bf145bc35ba2de2a57ae
MD5 95c065d213431c77a5ca86389a882854
BLAKE2b-256 fa5f7dfbb193ee9f61c52a458d0c763ec95c9b92b1cd22c5b8ae839ec61b4f0f

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