Metadata-Version: 2.4
Name: migraph
Version: 0.1.0
Summary: Interactive browser UI for visualizing and rewiring Alembic migration graphs
Author-email: Vishnu Sethuraman <vishnusethuraman@gmail.com>
License: MIT
Keywords: alembic,database,migrations,visualization
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: Topic :: Database
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Requires-Dist: libcst>=1.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: typer>=0.9.0
Description-Content-Type: text/markdown

# migraph

Interactive browser UI for visualizing and rewiring Alembic migration graphs.

## Install

```bash
pip install migraph
# or
uv tool install migraph
```

## Usage

```bash
# Auto-detect alembic.ini from current directory
migraph

# Explicit config or provider
migraph --config path/to/alembic.ini
migraph --provider alembic --config path/to/alembic.ini
```

## Browser UI

| Action | How |
|---|---|
| Select node | Click |
| Rewire parent | Click node A, then click node B → B becomes A's parent |
| Detach parent | Select node → **Detach Parent** |
| Restore from disk | **Refresh from Disk** |
| Write changes to files | **Apply to Repo** |
| Re-run auto layout | **Auto Format** |
| Discard all edits | **Reset Layout** |

Press `Ctrl+C` to stop the server.

## Requirements

Python 3.9+, Alembic project with `alembic.ini`

---

[Development →](DEVELOPMENT.md)
