Skip to main content

SoketDB — a zero-setup, smart 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.2.tar.gz (59.0 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.2-py3-none-any.whl (57.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: soketdb-1.5.2.tar.gz
  • Upload date:
  • Size: 59.0 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.2.tar.gz
Algorithm Hash digest
SHA256 1914c9947e76dee1cb47afdaf35c160fa3d6372ac3783dfc7ea700120d5b27bd
MD5 ce80baa684d8b200195120123e43a8fc
BLAKE2b-256 c7cd596f2551f0a0bd4f009929be7624fcee4798325eff66f1cf0c0364977a9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: soketdb-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 57.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60bab7d7b508cf3c5d4bdf59c4c5b8ab7b671347b4d785d81bab862665d82c2c
MD5 61e11fd819fc2ed658a83733d81af117
BLAKE2b-256 ed77359950fe52f667908bcd51cade8ceac7734a4e9e6abdaf0027d71df82895

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