Skip to main content

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.

Metadata

Release files for ask-connect-cli 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ask-connect-cli 0.1.3
File Size Uploaded Provenance
ask_connect_cli-0.1.3.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ask-connect-cli 0.1.3
File Interpreter ABI Platform
ask_connect_cli-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / ask_connect_cli-0.1.3.tar.gz

Download URL ask_connect_cli-0.1.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b8c7329d3b4fc001ddf6e0ee5912417b07a574c1d01bf49796240ecf6966608
BLAKE2b-256 checksum
How to use checksums
192bacec0f99f06987116ae88b461b5ebd0a757c7722ace8f9ef5325d1f10abe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.30

Release files / ask_connect_cli-0.1.3-py3-none-any.whl

Download URL ask_connect_cli-0.1.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
337e99c6197b576c7de97b5db97b382d993eae7fe9ec0c316409118e035072ad
BLAKE2b-256 checksum
How to use checksums
ce9d4c29af48ba8bae8a3fe74672ed294017d68aba341208a7beba75eda7db76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.30

Security for ask-connect-cli 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page