Metadata-Version: 2.4
Name: bytex-cli
Version: 1.1.2
Summary: A fast CLI tool to scan codebases, count lines, and analyze code with AI
Author: Beatrix
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: colorama>=0.4.6
Provides-Extra: ai
Requires-Dist: gpt4all>=2.0.0; extra == "ai"

# ByteX ⚡

> A fast CLI tool to scan codebases, count lines, show directory trees, and analyze code with AI.

---

## Installation

```bash
pip install bytex
```

With AI support:

```bash
pip install bytex[ai]
```

---

## Usage

```
bytex <command> [path]
```

| Command | Description |
|---------|-------------|
| `scan`  | Scan files, count lines, show bar chart sorted by size |
| `stats` | Show total file & line count |
| `tree`  | Show directory tree (ignores node_modules, .git, etc.) |
| `types` | Count files grouped by extension |
| `ai`    | AI-powered code analysis (requires `gpt4all`) |
| `help`  | Show help message |

### Examples

```bash
bytex scan ./my_project
bytex tree ./my_project
bytex types ./my_project
bytex ai ./my_project
```

---

## Features

- ⚡ Multi-threaded file scanning
- 🌲 Clean directory tree with emoji icons
- 📊 Bar chart for line counts per extension
- 🤖 AI code analysis via GPT4All (offline, no API key needed)
- 🎯 Typo correction for unknown commands
- 🚫 Auto-ignores: `node_modules`, `.git`, `__pycache__`, `venv`, `dist`, `build`

---

## License

MIT © Beatrix
