Skip to main content

A multifunctional command-line tool for interacting with large language models.

Project description

viby

GitHub Repo Python Version License: GPL v3 UV

English | 中文 A multifunctional command-line tool for interacting with large language models.

Features

  • Ask questions and get AI-generated answers
  • Interactive chat mode for multi-turn conversations
  • Generate shell commands and explanations
  • Process piped input (e.g., content from git diff)
  • Support for OpenAI-compatible API interfaces

Installation

pip install viby

Usage Examples

Basic Question

yb "Write a quicksort in python"
# -> Sure! Here is a quicksort algorithm implemented in **Python**:

Interactive Chat Mode

yb -c
<|: Tell me about quantum computing
# -> [AI responds about quantum computing]
<|: What are the practical applications?
# -> [AI responds with follow-up information]

Process Piped Content

git diff | yb "Generate a commit message"
# -> Added information to the README
yb "What is this project about?" < README.md
# -> This project is about...

Generate Shell Command

yb -s "How many lines of python code did I write?"
# -> find . -type f -name "*.py" | xargs wc -l
# -> [r]run, [e]edit, [y]yank, [q]quit: r

Configuration

Viby reads configuration from ~/.config/viby/config.json. You can set the model and parameters here.

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

viby-0.0.3.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viby-0.0.3-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file viby-0.0.3.tar.gz.

File metadata

  • Download URL: viby-0.0.3.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for viby-0.0.3.tar.gz
Algorithm Hash digest
SHA256 43a0fafb4ffe9e93840e61b2bb55d368be56b74b1c975b2a740b60e216928d82
MD5 db5c7d1619c098911e9ea83c1dfe2ba8
BLAKE2b-256 69b8d177e3aa7a8c916202a7dc785f48bac16ba7d8ee613eb48feec14ade2b1e

See more details on using hashes here.

File details

Details for the file viby-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: viby-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for viby-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b88081bfbc2399a644c53ff059a420b0aea662c6deae7ab205715ddf76678c0e
MD5 a4910baa75d3affe81de277b553a0273
BLAKE2b-256 af0415f63b1fd4ec8bfbe101f3c5b6fceae0b38a8576c87f9b14d5ceb2bc842e

See more details on using hashes here.

Supported by

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