代码拉取完成,页面将自动刷新
这是一个 Python 的包管理工具,目前处理两个主流的系统包管理器:apt
(使用于 Debian, Ubuntu 等),dnf
(使用于 Fedora, CentOS 等),pacman
(使用于 ArchLinux 等)。
这个库封装了各种包管理器的核心操作,使得对它们的操作可以通过统一的接口和格式进行。
pip install git+https://gitee.com/tinylab/tinyget.git
更新
pip install --upgrade git+https://gitee.com/tinylab/tinyget.git
Usage: tinyget [OPTIONS] COMMAND [ARGS]...
Options:
--config-path TEXT Path to configuration file, default is ~/.tinyget.conf.
--host TEXT OpenAI host.
--api-key TEXT OpenAI API key.
--model TEXT OpenAI model.
--max-tokens TEXT OpenAI max tokens.
--help Show this message and exit.
Commands:
config Interactively set up ai_helper for tinyget.
install Install packages.
list List packages.
search Search package.
ui TinyGet UI
uninstall Uninstall packages.
update Update the index of available packages.
upgrade Upgrade all available packages.
使用install
和uninstall
命令来安装和卸载包,使用upgrade
命令来升级所有包,使用update
命令来更新包索引。
tinyget list --help
Usage: tinyget list [OPTIONS]
List packages.
Options:
-I, --installed Show only installed packages.
-U, --upgradable Show only upgradable packages.
-C, --count Show count of packages.
--help Show this message and exit.
本工具提供 AI 智能助手功能,当你的命令出现错误时,它会自动为你纠错。你可以通过config
命令来配置 AI 助手。
tinyget config --help
Usage: tinyget config [OPTIONS]
Interactively set up ai_helper for tinyget.
Options:
-H, --host TEXT openai api host, default is
https://api.openai.com, can be specified with
environment variable OPENAI_API_HOST
-K, --api-key TEXT openai api key, can be specified with environment
variable OPENAI_API_KEY
-M, --model TEXT model to use, can be specified with environment
variable OPENAI_MODEL
-C, --max-tokens INTEGER Maximum number of tokens to be generated, default
is 1024, can be specified with environment
variable OPENAI_MAX_TOKENS, 8192 is openai's max
value when using gpt-3.5-turbo
--help Show this message and exit.
使用 tinyget ui
命令来启动 TUI 界面。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。