Skip to main content

AI-powered command-line code generator using Google Gemini - HeHe Noob Edition

Project description

HeHe Noob CLI

A powerful command-line interface for Google's Gemini AI that enables interactive conversations, code generation, and file management directly from your terminal. Now with extra humor and personality!

Features

  • 🤖 Interactive AI Chat: Have natural conversations with Google's Gemini AI
  • 📝 Code Generation: Generate code in multiple programming languages
  • 💾 Smart File Management: Automatically save generated code to files
  • 🎨 Rich Terminal UI: Beautiful, colorful interface with syntax highlighting
  • 📁 File Operations: Read, create, and manage files directly from the CLI
  • 💬 Conversation History: Keep track of your chat sessions
  • 🔧 Multiple Commands: Built-in commands for enhanced productivity

Installation

From PyPI (Recommended)

pip install hehe-noob-cli

From Source

git clone https://github.com/yourusername/hehe-noob-cli
cd hehe-noob-cli
pip install -e .

Setup

  1. Get your Gemini API key from Google AI Studio
  2. Set your API key as an environment variable:
# On Windows
set GEMINI_API_KEY=your-api-key-here

# On macOS/Linux
export GEMINI_API_KEY=your-api-key-here

Usage

Basic Usage

Start the CLI:

hehe
# or
hehe-noob
# or
hehenoob
# or (legacy commands)
gemini
gemini-cli
gai

Command Line Options

hehe --help                      # Show help
hehe --model gemini-pro          # Use specific model
hehe --api-key YOUR_KEY          # Use specific API key

Built-in Commands

Once in the CLI, you can use these commands:

  • /help - Show available commands
  • /clear - Clear conversation history
  • /status - Show current status
  • /history - Show conversation history
  • /create <filename> - Create a new file interactively
  • /read <filename> - Read and display a file
  • /list - List files in current directory
  • /exit or /quit - Exit the CLI

File References

You can reference files in your conversations:

@path/to/file.py

This will include the file content in your message to Gemini.

Examples

Code Generation

> Create a Python function to calculate fibonacci numbers

HeHe Noob will generate the code and offer to save it to a file.

File Analysis

> @my_script.py Please review this code and suggest improvements

Project Setup

> Create a Flask web application with user authentication

HeHe Noob will help you build it step by step!

Configuration

Environment Variables

  • GEMINI_API_KEY: Your Gemini API key (required for HeHe Noob to work)

Supported Models

  • gemini-2.0-flash-exp (default)
  • gemini-1.5-pro
  • gemini-1.5-flash

Requirements

  • Python 3.8+
  • Google Generative AI Python SDK
  • Rich (for terminal UI)
  • pathlib2 (for path handling)

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any issues or have questions:

  1. Check the Issues page
  2. Create a new issue if your problem isn't already reported
  3. Provide as much detail as possible about your environment and the issue
  4. HeHe Noob loves feedback and bug reports!

Changelog

v1.0.0

  • Initial release as HeHe Noob CLI
  • Interactive chat with Gemini AI (now with personality!)
  • Code generation and file management
  • Rich terminal interface with custom ASCII art
  • Built-in commands and file operations
  • Interactive API key prompting
  • Multiple command aliases (hehe, hehe-noob, hehenoob)

Note: This tool requires a valid Gemini API key. Make sure to keep your API key secure and never commit it to version control.

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

hehe_noob_cli-1.1.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

hehe_noob_cli-1.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file hehe_noob_cli-1.1.0.tar.gz.

File metadata

  • Download URL: hehe_noob_cli-1.1.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for hehe_noob_cli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a42ad65889915fefa41cdf9a8404df16130859eb94e32dce38ce8d7e4856aa95
MD5 bd19c5666bb43d4a00a869df7dea1279
BLAKE2b-256 f28074d095027ed45ec7804c8be6dd404d9552a92f71c6f090d890aad67921c6

See more details on using hashes here.

File details

Details for the file hehe_noob_cli-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hehe_noob_cli-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for hehe_noob_cli-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dcd8a8caf51e4722aeb731afb166ac9fe38609b5c9b2a00d40bee882c435127
MD5 7815f7a709a8c725f6d94e925514741a
BLAKE2b-256 14c41c76688ad154c50627a0188e1468684bdc487e5bc1b9e70d443aa0671d0e

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