Metadata-Version: 2.4
Name: xrk-readline
Version: 0.2.10
Summary: Lightweight readline for CLIs: C console backend + Python editor (Windows/POSIX)
Author-email: xrkseek <141429406+xrkseek@users.noreply.github.com>
License: MIT
Project-URL: Homepage, https://github.com/xrkseek/xrk-readline
Project-URL: Repository, https://github.com/xrkseek/xrk-readline
Project-URL: Issues, https://github.com/xrkseek/xrk-readline/issues
Keywords: readline,cli,console,windows,c-extension,repl
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 3
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 :: System :: Shells
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# xrk-readline

轻量 CLI 行编辑：可选 C 扩展 + Python 编辑器（无编译器时纯 Python）。

- https://github.com/xrkseek/xrk-readline
- https://pypi.org/project/xrk-readline/

## 安装

```bash
pip install xrk-readline
```

## 用法

```python
from xrk_readline import Readline, backend_name

rl = Readline()
line = rl.readline("app> ")
```

| 键 | 行为 |
|----|------|
| ← → Home End · Ctrl+A/E | 光标 |
| Ctrl+← / Ctrl+→ | 按词 |
| ↑ ↓ | 历史（CSI / SS3 / Win 扩展键） |
| Tab | 补全 |
| Ctrl+C / Ctrl+D | 清空或中断 / 空行 EOF |

## 发版

打 tag `v*` → Actions `publish.yml` → PyPI（Trusted Publisher，环境 `pypi`）。

## License

MIT
