Metadata-Version: 2.4
Name: dragonglass
Version: 0.1.0b2
Summary: LLM CLI engineered for developer workflows. Built on Hexagonal Architecture** for strict typing, modularity, and speed
Author-email: Saadman Rafat <saadman@outlook.com>
License-File: LICENSE
Keywords: ai,gemini,genai,generative-ai,google,llm,vertex-ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
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: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: chromadb>=1.3.5
Requires-Dist: google-genai>=1.52.0
Requires-Dist: hatchling>=1.28.0
Requires-Dist: platformdirs>=4.5.0
Requires-Dist: pydantic-settings>=2.12.0
Requires-Dist: pydantic>=2.12.5
Requires-Dist: rich>=14.2.0
Requires-Dist: sqlmodel>=0.0.27
Requires-Dist: typer>=0.20.0
Description-Content-Type: text/markdown

# DragonGlass (`dg`)

<div>

![DragonGlass CLI](https://img.shields.io/badge/Status-Beta-blue?style=for-the-badge)
![Python](https://img.shields.io/badge/Python-3.10%2B-FFE873?style=for-the-badge&logo=python&logoColor=white)
![Gemini](https://img.shields.io/badge/Gemini-Powered-4285F4?style=for-the-badge&logo=google&logoColor=white)

**LLM CLI engineered for developer workflows.** 
Built on **Hexagonal Architecture** for strict typing, modularity, and speed.

</div>

---
    ██████╗ ██████╗  █████╗  ██████╗  ██████╗ ███╗   ██╗
    ██╔══██╗██╔══██╗██╔══██╗██╔════╝ █     ██╝████╗  ██║
    ██║  ██║██████╔╝███████║██║  ███╗██║   █ ╗██╔██╗ ██║
    ██║  ██║██╔══██╗██╔══██║██║   ██║██║   ██║██║╚██╗██║
    ██████╔╝██║  ██║██║  ██║╚██████╔╝╚██████╔╝██║ ╚████║
    ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝ ╚═════╝  ╚═════╝ ╚═╝  ╚═══╝

                 ██████╗ ██╗      █████╗ ███████╗███████╗
                ██╔════╝ ██║     ██╔══██╗██╔════╝██╔════╝
                ██║  ███╗██║     ███████║███████╗███████╗  
                ██║   ██║██║     ██╔══██║╚════██║╚════██║  
                ╚██████╔╝███████╗██║  ██║███████║███████║
                 ╚═════╝ ╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝
   
    $ dg 
    $ cat error.log | dg chat "Analyze the log" 
    $ cat error.log | dg chat "Fix the Error" --image screenshot.png
## Features

 
Optimized for the Google Gemini ecosystem.
- **Multimodal**: Native support for text, images, and audio.
- **Fast**: Streams responses in real-time.
- **Efficient**: Uses `gemini-embedding-001` for high-quality semantic search.
- **Unix Philosophy**: Designed to be piped.
  - cat logs.txt | dg chat "Analyze this error" --image screenshot.png
- **Hexagonal Architecture**: Core logic is completely decoupled from infrastructure (DB, API).
- **XDG Compliant**: respect your system's config standards (`~/.config/dg`, `~/.local/share/dg`).

## Installation

Requires **Python 3.10+**.

```bash
pip install dragonglass
```

## Configuration

Set your Gemini API key via environment variable:

```bash
export GOOGLE_API_KEY="your-api-key-here"
```

Or run a command, and `dg` will guide you.

## Usage

```bash
cat error.log | python -m dg chat "Fix this error" --image screenshot.png # Multimodal One-Shot (Pipe + Image)
```

### Pipelines
Process files and data streams.

```bash
# Summarize a README
cat README.md | dg chat "Summarize the key features"
```

### History
View your conversation logs.

```bash
dg log
```

## Roadmap

- [x] Core Architecture (Hexagonal)
- [x] Gemini Integration (Streaming)
- [x] SQLite Persistence
- [x] Local RAG (Numpy + Embeddings)
- [ ] **Interactive TUI**: Full chat interface with `Textual`.
- [x] **Multimodal Inputs**: `dg chat --image screenshot.png "Fix this UI"`
- [ ] **Project Awareness**: Auto-index git repositories for context.



## LICENSE

Apache License 2.0