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.4.2.tar.gz (17.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.4.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: soketdb-1.4.2.tar.gz
  • Upload date:
  • Size: 17.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.4.2.tar.gz
Algorithm Hash digest
SHA256 553c1bc27bbeeb33f453d37da45d607af8de47c7af0ff033e966826097c840d2
MD5 194813635dbea33cc17eec2713ab198d
BLAKE2b-256 47a030130da29ca31849f98cb4dee8c17c2fcaebd22d0b8583caa10a6b7b15fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: soketdb-1.4.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 696adc5e1ea828c473d1016c5a7eecf9bd5439316fc45cfa1bf79850d37cbb84
MD5 daa3fc9660f6e0587d8c54ca5ac13f63
BLAKE2b-256 a90bb50f307acae74316267348d8df56586711d8fad63ea5294ced873bcf67c2

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