Metadata-Version: 2.4
Name: contextchain
Version: 1.4.25
Summary: ContextChain v2.0: Adaptive context optimization framework for LLMs with MongoDB, vector DB, and multi-backend LLM integration
Author-email: Nihal Nazeer <Nhaal160@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/nihalnazeer/contextchain
Project-URL: Bug_Tracker, https://github.com/nihalnazeer/contextchain/issues
Project-URL: Documentation, https://github.com/nihalnazeer/contextchain/blob/main/docs
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pymongo>=4.13.2
Requires-Dist: motor>=3.1.1
Requires-Dist: requests>=2.32.4
Requires-Dist: pydantic>=2.11.7
Requires-Dist: urllib3<2
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: numpy>=1.26.0
Requires-Dist: torch>=2.0.0
Requires-Dist: sentence-transformers>=2.2.2
Requires-Dist: scikit-learn>=1.3.0
Requires-Dist: faiss-cpu>=1.7.4
Requires-Dist: chromadb>=0.4.0
Requires-Dist: networkx>=3.1
Requires-Dist: jinja2>=3.1.2
Requires-Dist: fastapi>=0.104.0
Requires-Dist: uvicorn>=0.24.0
Requires-Dist: openai>=1.0.0
Requires-Dist: anthropic>=0.7.0
Requires-Dist: ollama>=0.1.0
Requires-Dist: transformers>=4.35.0
Requires-Dist: httpx>=0.24.0
Requires-Dist: pytest>=7.0.0
Requires-Dist: pytest-asyncio>=0.21.0
Dynamic: license-file

# ContextChain

![GitHub License](https://img.shields.io/github/license/yourusername/contextchain)
![Python Version](https://img.shields.io/badge/python-3.8%2B-blue)
![PyPI Version](https://img.shields.io/pypi/v/contextchain)
![Build Status](https://img.shields.io/badge/build-passing-green) <!-- Update with CI badge if applicable -->

**ContextChain** is an open-source, pipeline-based execution framework designed to orchestrate AI and full-stack workflows. It enables developers to define, manage, and execute complex task chains with support for various task types (e.g., API calls, local processing, LLM tasks) in a structured and versioned manner. Built with Python, it leverages MongoDB for persistence and provides a command-line interface (CLI) for easy interaction.

## Features
- **Pipeline Management**: Define and execute workflows as pipelines with multiple tasks.
- **Task Types**: Supports GET, POST, PUT, LLM, and LOCAL task types with configurable inputs and outputs.
- **Versioning**: Track and rollback schema versions using MongoDB.
- **Extensibility**: Easily extend with custom task endpoints and configurations.
- **CLI Interface**: Manage pipelines interactively or via scripts.
- **Validation**: Ensures schema integrity with built-in validators.

## Installation

### Via PyPI
ContextChain is available on PyPI. Install it with pip:

```bash
pip install contextchain
