Metadata-Version: 2.4
Name: cli-trans
Version: 0.1.1
Summary: 英汉命令行翻译工具
Author-email: 刘瑞 <liu15671677014@icloud.com>
License: MIT
Project-URL: Homepage, https://github.com/bigfoolliu/cli-trans
Project-URL: Repository, https://github.com/bigfoolliu/cli-trans
Project-URL: Issues, https://github.com/bigfoolliu/cli-trans/issues
Keywords: cli,translate,dictionary,english,chinese
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0
Requires-Dist: colorama>=0.4.6
Dynamic: license-file

# cli-trans

命令行单词翻译工具。

## 功能

1. 单个或多个单词同时翻译；
2. 缓存功能，首次查询是在线查询，后续单词查询本地查询，且有标识区分；
3. 不同的词性使用不同的颜色区分；
4. 能将所有历史查询的单词展示。

## 安装

```bash
pip install cli-trans
```

## 使用

```bash
# 翻译单词
cli-trans hello
cli-trans hello world python

# 查看历史记录
cli-trans -l
cli-trans -l -n 20

# 强制从 API 重新获取（忽略缓存）
cli-trans hello --force
cli-trans -f hello

# 清除历史记录
cli-trans -c

# 查看版本
cli-trans -v
```
