A multifunctional command-line tool for interacting with large language models.
Project description
viby
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
Release history Release notifications | RSS feed
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.4.tar.gz
(30.9 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
viby-0.0.4-py3-none-any.whl
(36.5 kB
view details)
File details
Details for the file viby-0.0.4.tar.gz.
File metadata
- Download URL: viby-0.0.4.tar.gz
- Upload date:
- Size: 30.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
704c91779dbf8a924b66a3537dcb66bf45217172e54163f8dd2113a1e1003dc3
|
|
| MD5 |
45f7e57e99c041fd5aacad4197553a47
|
|
| BLAKE2b-256 |
67b3930fa07eae28b66624f67cc83ba50cd8db8c38d7b6ea6c6684dfd35ddcb1
|
File details
Details for the file viby-0.0.4-py3-none-any.whl.
File metadata
- Download URL: viby-0.0.4-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64eb6c5bf29555baa1543f895b9f3a56f0aa1f1a5edd12c6ce58d4f4ad347fe4
|
|
| MD5 |
dfb77ae8646ea167a6a62fd18adedc69
|
|
| BLAKE2b-256 |
2ae587c89d22240bd9a7500baee399eaeff29f590639f52e04e852a4d4740fe0
|