Metadata-Version: 2.4
Name: doxl-ai-terminal
Version: 0.1.5
Summary: AI-powered terminal for reading and writing Excel & Word documents
Author: Monish Kumaar M
License: MIT
Project-URL: Homepage, https://github.com/monishkumaarm-5/Excel-docs-reader-writer-AI
Project-URL: Issues, https://github.com/monishkumaarm-5/Excel-docs-reader-writer-AI/issues
Keywords: ai,excel,docx,terminal,agent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openpyxl>=3.1.0
Requires-Dist: python-docx>=0.8.11
Requires-Dist: pillow>=10.0.0
Requires-Dist: cryptography>=41.0.0
Requires-Dist: protobuf>=4.21.1
Requires-Dist: filelock>=3.12.0
Requires-Dist: pywin32>=306; sys_platform == "win32"
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: langchain-core>=0.3.0
Requires-Dist: langchain-chroma>=0.2.0
Requires-Dist: langchain-huggingface>=0.1.0
Requires-Dist: langchain-google-genai
Requires-Dist: langgraph
Requires-Dist: google-genai
Requires-Dist: sentence-transformers>=2.2.0
Requires-Dist: rich>=13.0
Requires-Dist: prompt_toolkit>=3.0.36
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"
Dynamic: license-file

# doxl-ai-terminal

AI-powered terminal for reading and writing Excel & Word documents.

## Installation

### From source (editable / development mode)
# Local Testing and PyPI Publishing Guide

This guide outlines the complete workflow for testing a Python package locally and publishing it to PyPI using `build` and `twine`.

---

## Part 1: Install Locally (To Test)

Follow these steps to set up an isolated development environment and test your package locally before publishing.

### 1. Create and Activate a Virtual Environment

Create a virtual environment named `.venv` and activate it in PowerShell:

```powershell
python -m venv .venv
.\.venv\Scripts\activate
```

### 2. Install Package in Editable Mode

Install your project in editable mode (`-e`). This allows any code changes you make in your project directory to take effect immediately without having to reinstall the package:

```powershell
pip install -e .
```

### 3. Verify Execution

Run the entry point script to ensure your package installs and functions properly:

```powershell
docs-excel
```

---

## Part 2: Publish to PyPI with Twine

Once local testing is complete and successful, follow these steps to package and publish your release to PyPI.

### 1. Update Version Number

Open your `pyproject.toml` file and bump the version string appropriately:

```toml
version = "0.1.3"
```

### 2. Install Build and Publishing Tools

Ensure you have the latest versions of `build` and `twine` installed:

```powershell
pip install build twine
```

### 3. Clean Up Previous Builds

Remove stale build artifacts to avoid uploading old source packages or wheels:

```powershell
Remove-Item -Recurse -Force dist, build, src\*.egg-info
```

### 4. Build the Package

Generate the distribution archives (source distribution `.tar.gz` and wheel `.whl`):

```powershell
python -m build
```

### 5. Check Distribution Files

Verify that your package's metadata is valid for PyPI:

```powershell
twine check dist/*
```

### 6. (Optional) Upload to TestPyPI

If you want to test the upload process on the official sandbox server before going live:

```powershell
twine upload --repository testpypi dist/*
```

### 7. Upload to PyPI

Publish the release to the primary PyPI repository:

```powershell
twine upload dist/*
```

When prompted for authentication:
* **Username:** `__token__`
* **Password:** Your PyPI API token (starts with `pypi-`).
* *Note: API tokens can be created in your [PyPI Account Settings](https://pypi.org).*

---

## Part 3: Verify the Published Package

Test downloading and installing the newly published package from PyPI using a clean environment:

```powershell
# Create and activate a fresh test environment
python -m venv test-env
.\test-env\Scripts\activate

# Install from PyPI
pip install doxl-ai-terminal

# Test running the CLI tool
docs-excel
```

```bash
# Clone the repository
git clone https://github.com/monishkumaarm-5/Excel-docs-reader-writer-AI.git
cd Excel-docs-reader-writer-AI

# Install in editable mode
pip install -e .

# Or with dev dependencies
pip install -e ".[dev]"
```

### From built package

```bash
pip install .
```

## Usage

### CLI

After installation, the `doxl-ai` command is available:

```bash
# Show help
doxl-ai --help

# Show version
doxl-ai --version
```

### Python API

```python
import doxl_ai_terminal
print(doxl_ai_terminal.__version__)

# Import sub-modules
from doxl_ai_terminal.agents import excel_agent, docs_agent
from doxl_ai_terminal.data_handler import vector_config
from doxl_ai_terminal.pipeline import pipeliner
```

### As a module

```bash
python -m doxl_ai_terminal --help
```

## Project Structure

```
src/
└── doxl_ai_terminal/
    ├── __init__.py          # Package root & public API
    ├── __main__.py          # python -m support
    ├── cli.py               # CLI entry point
    ├── agents/              # AI agents for different file types
    │   ├── config_agent.py
    │   ├── docs_agent.py
    │   ├── excel_agent.py
    │   └── terminal_agent.py
    ├── data_handler/        # Vector DB & data operations
    │   ├── vector_config.py
    │   └── vector_db_operation.py
    └── pipeline/            # Processing pipelines
        └── pipeliner.py
```

## Development

```bash
# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Lint
ruff check src/ tests/
```

## License

MIT License — see [LICENSE](LICENSE) for details.
