A versatile CLI assistant powered by the Gemini API.
Project description
zgpt
A versatile and easy-to-use command-line AI assistant powered by the Google Gemini API.
Features
- Simple Interface: Get answers directly in your terminal.
- Easy Setup: Configure your API key with a single command.
- Secure: Your API key is stored locally in your user configuration directory.
Installation
First, clone the repository and navigate into the directory:
git clone https://github.com/sachinz25/zgpt.git
cd zgpt
Then, install the package in editable mode. This is great for development and ensures the zgpt command is available system-wide.
pip install -e .
Setup 🔑
Before you can use zgpt, you need to set your Gemini API key. Run the --init command:
`` zgpt --init
You will be prompted to enter your API key. Once saved, you're ready to go!
You can remove the key at any time:
```bash
zgpt --revoke
Usage
To ask a question, simply type zgpt followed by your prompt:
zgpt "explain what a decorator is in python with a simple example"
```bash
zgpt "give me a 5-line summary of the movie Inception"
🛠 Example
$ zgpt "hello"
🤔 Thinking...
🤖
Hello there! How can I help you today?
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
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 zgpt-1.0.0.tar.gz.
File metadata
- Download URL: zgpt-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4e5a436b3711769fe537b14da71cc0f61a70799c6e87c9f15cd2bf3d0b92b1d
|
|
| MD5 |
7926e496dc86d4f88472749e3ca8a86e
|
|
| BLAKE2b-256 |
58fb067ab3e23567de65fde12f0b072caad8ca475bc417d329463984be600c5c
|
File details
Details for the file zgpt-1.0.0-py3-none-any.whl.
File metadata
- Download URL: zgpt-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f1414e5c7eebbc1dc71796d747550085d32c20ef54922292f7fb5d0cd588112
|
|
| MD5 |
7f5bb0380507bda24e3d370ea7860af6
|
|
| BLAKE2b-256 |
027851b5953a93fc6ebda44d0d35ae8593ed45231cbfe3adc167875cfb25cf36
|