Metadata-Version: 2.4
Name: arete
Version: 2.0.1
Summary: A robust, fast, and feature-rich CLI for syncing Obsidian vault to Anki.
Project-URL: Repository, https://github.com/Adanato/Arete
Author-email: Adam Nguyen <AdanatoNw@gmail.com>
License-Expression: GPL-3.0
License-File: LICENSE
Keywords: anki,obsidian,spaced-repetition,sync
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Education
Requires-Python: >=3.12
Requires-Dist: anki==24.4.1
Requires-Dist: fastapi>=0.109.0
Requires-Dist: httpx>=0.28.1
Requires-Dist: markdown>=3.10
Requires-Dist: pydantic-settings[toml]>=2.12.0
Requires-Dist: pydantic>=2.12.5
Requires-Dist: python-ulid>=3.0.0
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: requests>=2.31.0
Requires-Dist: tqdm>=4.67.1
Requires-Dist: typer[all]>=0.21.0
Requires-Dist: uvicorn[standard]>=0.27.0
Requires-Dist: watchdog>=4.0.0
Provides-Extra: agent
Requires-Dist: atomic-agents>=2.6.0; extra == 'agent'
Requires-Dist: google-generativeai>=0.8.0; extra == 'agent'
Requires-Dist: instructor>=1.0.0; extra == 'agent'
Requires-Dist: mcp>=1.0.0; extra == 'agent'
Requires-Dist: openai>=1.0.0; extra == 'agent'
Description-Content-Type: text/markdown

# Arete

**Pro-grade synchronization from Obsidian to Anki.**

[![CI](https://github.com/Adanato/Arete/actions/workflows/ci.yml/badge.svg)](https://github.com/Adanato/Arete/actions/workflows/ci.yml)
[![Coverage](docs/coverage.svg)](htmlcov/index.html)
[![PyPI](https://img.shields.io/pypi/v/arete)](https://pypi.org/project/arete/)
[![License](https://img.shields.io/github/license/Adanato/Arete)](https://github.com/Adanato/Arete/blob/main/LICENSE)

`arete` is a robust, fast, and feature-rich tool that adheres to a strict **One-Way Sync** philosophy: **Obsidian is the Source of Truth**. It allows you to maintain complex study materials in your vault while keeping Anki perfectly in sync.

---

## 🚀 Key Features

- ⚡ **Turbocharged Sync**: SQLite caching skips unchanged files for near-instant updates.
- 📐 **Topological Sort**: Build filtered study queues that respect prerequisite dependencies.
- 🧬 **FSRS Support**: Native difficulty and retention analysis for modern memory schedulers.
- 🧹 **Orphan Management**: Automatically prunes deleted cards from your Anki collection.
- 🩹 **Self-Healing**: Automatically repairs duplicate IDs or broken internal references.
- 📸 **Rich Media**: Full synchronization of images, SVGs, and other attachments.
- 💻 **Cross-Platform**: First-class support for macOS, Linux, and Windows (including WSL).

---

## 📦 Quick Start

### 1. Install CLI
`arete` requires [uv](https://github.com/astral-sh/uv) for high-performance dependency management.

```bash
git clone https://github.com/Adanato/Arete
cd obsidian_2_anki
uv sync
# To enable Agentic features (v3 preview):
# uv sync --extra agent
```

### 2. Install Plugin
Download the latest release from the [Releases](https://github.com/Adanato/Arete/releases) page and place the files in your plugin folder:
`.obsidian/plugins/arete/`

### 3. Initialize & Sync
```bash
uv run arete init   # Interactive setup wizard
uv run arete sync   # Your first sync
```

---

## 📚 Documentation

- [**CLI Guide**](./docs/cli_guide.md): Command-line options, configuration, and syntax.
- [**Obsidian Plugin Guide**](./docs/plugin_guide.md): How to use the GUI and Gutter features.
- [**Architecture**](./docs/ARCHITECTURE.md): Technical deep-dive into the core logic.
- [**Troubleshooting**](./docs/troubleshooting.md): Common fixes for WSL and networking.

---

## 🔄 Upgrading to v2.0
Upgrading from a legacy version? `arete` includes a migration tool to normalize your metadata:
```bash
uv run arete migrate
```

## 📄 License
MIT
