4 Star 3 Fork 4

泰晓科技/TinyGet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
GPL-2.0

Tinyget

项目介绍

这是一个 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.

基本操作

使用installuninstall命令来安装和卸载包,使用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 助手

本工具提供 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.

TUI 界面

使用 tinyget ui 命令来启动 TUI 界面。 tinyget_tui

空文件

简介

跨平台统一包管理接口,兼容各种常见的包管理工具。 展开 收起
README
GPL-2.0
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tinylab/tinyget.git
git@gitee.com:tinylab/tinyget.git
tinylab
tinyget
TinyGet
master

搜索帮助