Skip to main content

A CLI to interact with Google Gemini AI models

Project description

ASK CONNECT CLI

ASK CONNECT CLI is a command-line application that allows users to interact with Google's Gemini AI models. It enables users to select AI models, ask questions, and receive AI-generated responses. The application also supports environment variable configuration and automatically sets default values upon installation.

Features

  • Select from available Gemini AI models
  • Ask AI-powered questions and get real-time responses
  • Rich CLI interface using typer, rich, and InquirerPy
  • Automatic environment variable setup
  • Supports .env file for persistent settings

Installation

Prerequisites

Ensure you have Python 3.10+ installed. You can check your version by running:

python --version

Install from PyPI

You can install ASK CONNECT CLI using pip:

pip install ask-connect-cli

Manual Installation

Clone the repository and install dependencies:

git clone https://github.com/yourusername/ask-connect-cli.git
cd ask-connect-cli
pip install -r requirements.txt

Usage

1. Set up the API Key

Before using the CLI, set your Gemini API key:

export GEMINI_API_KEY='your_api_key'

For Windows (PowerShell):

$env:GEMINI_API_KEY="your_api_key"

Alternatively, you can add it to a .env file in the project directory:

echo "GEMINI_API_KEY=your_api_key" > .env

2. Select an AI Model

Run the following command to list available AI models and select one:

ask models

This will allow you to choose a model interactively and save it in the .env file.

3. Ask a Question

Once a model is selected, ask a question using:

ask q "What is the capital of France?"

Environment Variables

The CLI automatically sets up default environment variables upon installation. These can be found in the .env file:

GRPC_VERBOSITY=ERROR
GRPC_ENABLE_FORK_SUPPORT=0
CURRENT_MODEL=gemini-1.5-flash

If needed, you can manually edit these values in .env.

Development

If you want to contribute or modify the project, follow these steps:

git clone https://github.com/AutoDictate/ask-connect-cli.git
cd ask-connect-cli
python -m venv .venv
source .venv/bin/activate  # For Windows: .venv\Scripts\activate
pip install -r requirements.txt

Publishing to PyPI

To publish a new version to PyPI:

python -m build
python -m twine upload dist/*

License

This project is licensed under the MIT License.

Contact

For support or issues, open an issue on GitHub or contact techie4coffee@gmail.com.

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

ask_connect_cli-0.1.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

ask_connect_cli-0.1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ask_connect_cli-0.1.3.tar.gz.

File metadata

  • Download URL: ask_connect_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.30

File hashes

Hashes for ask_connect_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4b8c7329d3b4fc001ddf6e0ee5912417b07a574c1d01bf49796240ecf6966608
MD5 bcca2aa56958f98b007a52376873d6ac
BLAKE2b-256 192bacec0f99f06987116ae88b461b5ebd0a757c7722ace8f9ef5325d1f10abe

See more details on using hashes here.

File details

Details for the file ask_connect_cli-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ask_connect_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 337e99c6197b576c7de97b5db97b382d993eae7fe9ec0c316409118e035072ad
MD5 9530d6fe04d9d175747a45fb0f244c3c
BLAKE2b-256 ce9d4c29af48ba8bae8a3fe74672ed294017d68aba341208a7beba75eda7db76

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