英汉命令行翻译工具
Project description
cli-trans
命令行单词翻译工具。
功能
- 单个或多个单词同时翻译;
- 缓存功能,首次查询是在线查询,后续单词查询本地查询,且有标识区分;
- 不同的词性使用不同的颜色区分;
- 能将所有历史查询的单词展示。
安装
pip install cli-trans
使用
# 翻译单词
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cli_trans-0.1.1.tar.gz
(7.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cli_trans-0.1.1.tar.gz.
File metadata
- Download URL: cli_trans-0.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fd4d2ab144f8788eb23e192854222029427216d7f4f6eb3ecc531cb6de46ea0
|
|
| MD5 |
9fd9b15114a388577c3a22c6c22960af
|
|
| BLAKE2b-256 |
e578bc6c6a349d37ff9b6f8a36a05caa1169b0bbbf4901e174ce3a9267a43409
|
File details
Details for the file cli_trans-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cli_trans-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cd52b31ebd36082b615387ea8369425adcc72bedb33602354241cac7e5396af
|
|
| MD5 |
f42e1d4e56c53d817329f8f61dd5a64c
|
|
| BLAKE2b-256 |
543cd04ceb092652ba3b9e6812e315918d42f875fe9ef245603d4b9e789e2571
|