This is a CLI chatGPT for Linux with beautiful highlighting
Project description
ChatGPT CLI
ChatGPT CLI is a Python-based command-line interface for interacting with ChatGPT using the OpenAI API.
Features
- 🌐 Multilingual support (English, Russian, Polish)
- 💾 Save and load conversation history
- ⚡ Quick-access commands (e.g.
q,n,e,r) - 🖋️ Formatted output using
rich
Installation
- installation
pip install naf-chatgpt-cli
# or
git clone https://github.com/nafanius/ChatGptCLI.git
cd chatgptcli
pip install .
# or
poetry install
- Set up your OpenAI API key
export GPT_API_KEY=sk_your_key
Usage
Launch the CLI with:
chatgpt_cli
Available Commands
| Command | Description |
|---|---|
q |
Quit the application |
n |
Start a new topic |
0 |
Reset prefix (exit translation mode) |
00 |
Reset prefix and start a new topic |
e |
Translate input to English |
p |
Translate input to Polish |
r |
Translate input to Russian |
rv |
Translate to Russian and explain usage with examples in English |
s |
Save conversation history to history.json |
l |
Load conversation history from history.json |
c |
Clear the screen |
h |
Show help message |
Dependencies
License
MIT License
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
naf_chatgpt_cli-0.1.3.tar.gz
(4.5 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
File details
Details for the file naf_chatgpt_cli-0.1.3.tar.gz.
File metadata
- Download URL: naf_chatgpt_cli-0.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.8.0-85-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d540520fa55618edb46286a0ccd18e877ad85d8f74d3a7512d1e65499ebe6dd0
|
|
| MD5 |
e6d7d9dff6a3c70ee851880e033c8401
|
|
| BLAKE2b-256 |
1fa0a31f5cc1509d454972a5445c860a4db93d1abe50e0e9f8715a771ab9db71
|
File details
Details for the file naf_chatgpt_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: naf_chatgpt_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.8.0-85-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe225de9617fa99075c438225a5ba275fcaf45042dc632a4e2be94a4d5aea29c
|
|
| MD5 |
2a7cf2d2052dbadfcdc6e286fc0b8fc3
|
|
| BLAKE2b-256 |
acd86bc2742fb3b3469bdf21d2a1076ff407e3e754adbba70c5e13be88803ac6
|