Metadata-Version: 2.4
Name: zgpt
Version: 1.0.0
Summary: A versatile CLI assistant powered by the Gemini API.
Home-page: https://github.com/sachinz25/zgpt
Author: sachinz25
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests>=2.25.0
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary


# 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:

```bash
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

```bash
$ zgpt "hello"

🤔 Thinking...
🤖

Hello there! How can I help you today?
```
