Metadata-Version: 2.4
Name: orbmem
Version: 1.0.4
Summary: OrbMem – A lightweight Cognitive Memory & Vector framework (Memory, Vectors, Graph, Safety).
Author-email: Tetala Lakshmi Abhishek Reddy <tetalaharitha@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Tetala Lakshmi Abhishek Reddy
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights  
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell  
        copies of the Software, and to permit persons to whom the Software is  
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all  
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE  
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN  
        THE SOFTWARE.
        
        
        
Project-URL: Homepage, https://github.com/abhis-byte/orbynt-database-OrbMem
Project-URL: Documentation, https://github.com/abhis-byte/orbynt-database-OrbMem
Project-URL: Source, https://github.com/abhis-byte/orbynt-database-OrbMem
Project-URL: Issues, https://github.com/abhis-byte/orbynt-database-OrbMem/issues
Keywords: ai,database,vector,memory,agents,cognitive-db,orbmem
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: faiss-cpu
Requires-Dist: networkx
Requires-Dist: pymongo
Requires-Dist: python-dotenv
Requires-Dist: pydantic
Dynamic: license-file

# OCDB — Cognitive Database Framework

OCDB (Orbynt Cognitive Database) is a lightweight, modular framework that combines
**🧠 Memory**, **🔍 Vector Search**, **🕸 Graph Reasoning**, and **🛡 Safety Scanning** into a single Python package.

Designed for:

- AI agents
- Chatbots
- Automation systems
- Reasoning pipelines
- Personal assistants
- Any system that needs context, memory, search, and safety  

This is the **local developer** version for PyPI.
A fully hosted **OCDB Cloud Platform** will launch separately.

---

## ✨ Features


### 🧠 1. Memory Engine
Store and retrieve structured memory using a simple API.

```python
from ocdb.core.ocdb import OCDB

ocdb = OCDB()
ocdb.memory_set("name", {"value": "Abhishek"})
print(ocdb.memory_get("name"))
```

---


### 🔍 2. Vector Search (FAISS local engine)
Semantic search powered by FAISS.

```python
ocdb.vector_engine.add_text("hello world", {"id": "1"})
results = ocdb.vector_search("hello", k=3)
```

---

### 🕸 3. Graph Engine (NetworkX)
Build reasoning trees or node-based logic.

```python
ocdb.graph_add("root", "Start")
ocdb.graph_add("child", "Next", parent="root")
```

---

### 🛡 4. Safety Engine
Simple text-safety scanning with MongoDB + time-series tracking.

```python
events = ocdb.safety_scan("This is a sample text")
```

---

### 📦 Installation

```nginx
pip install orbmem
```

---

### 📁 Project Structure
```makefile
ocdb/
 ├── core/        # Config, auth, high-level OCDB interface
 ├── engines/     # Memory, vector, graph, safety engines
 ├── models/      # Memory & safety models
 ├── utils/       # Helpers, exceptions, logging
 └── db/          # Database connectors (Mongo, Neo4j, Postgres, Redis)
```

---

### 🚀 Quickstart Example

```python
from ocdb.core.ocdb import OCDB

ocdb = OCDB()

# Memory
ocdb.memory_set("demo", {"text": "Hello OCDB"})
print(ocdb.memory_get("demo"))

# Vector
ocdb.vector_engine.add_text("Abhishek is building OCDB", {"id": "vec1"})
print(ocdb.vector_search("Abhishek"))

# Graph
ocdb.graph_add("n1", "Start")
ocdb.graph_add("n2", "Next", parent="n1")

# Safety
print(ocdb.safety_scan("Harmless text"))
```

---

### 📝license
This project is released under the *MIT License*.                       
See the `LICENSE` file for full terms.

---

### 👨‍💻 Author
**Tetala Lakshmi Abhishek Reddy**            
Creator of OCDB                   
📧Email: `abhishek.orbynt@gmail.com`

---

### ⭐ Support OCDB
f you like this project, please star the repository and share it!  
The OCDB Cloud Dashboard + Hosted API is coming soon… 🚀
