Skip to main content

An intelligent shell with AI chat capabilities

Project description

smart_shell

基于python库prompt_toolkit 实现的一款命令行终端, 再保持现有shell功能的背景下,额外支持以下功能

  1. 终端支持chat命令, 可以在命令行和大模型聊天
  2. 终端支持chat读取命令行上下文, 支持读取历史shell命令的输入、输出结果
  3. 在pipeline管道中, 支持chat命令读取管道命令的输出,输出

安装

pip intall -r requirements.txt

功能点1

在命令行中输入chat命令,进入聊天模式,可以和大模型聊天

> chat 你是什么模型

功能点2

在命令行中输入chat命令,进入聊天模式,可以和大模型聊天

chat 刚才git执行,为啥报错

功能点3

在pipline管道中, 支持chat命令读取管道命令的输出,输出

> ls -ls |  chat 转换为markdown格式

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

chat_shell-0.1.0.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file chat_shell-0.1.0.tar.gz.

File metadata

  • Download URL: chat_shell-0.1.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for chat_shell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d8e8c41a1ba92922219eb4e5075abdbbfb73fb64942e2517473b0c5e38c7a6dc
MD5 88fb81bae19e8d13a93d8c157a79ccaa
BLAKE2b-256 9f3e44c5af1299fdd6fb38f086dd2f9a208258e2e65958cf08a1c1574343dda1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page