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
- Get your Gemini API key from Google AI Studio
- 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/exitor/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-progemini-1.5-flash
Requirements
- Python 3.8+
- Google Generative AI Python SDK
- Rich (for terminal UI)
- pathlib2 (for path handling)
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - 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:
- Check the Issues page
- Create a new issue if your problem isn't already reported
- Provide as much detail as possible about your environment and the issue
- 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
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 hehe_noob_cli-1.0.0.tar.gz.
File metadata
- Download URL: hehe_noob_cli-1.0.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e75e5fb48489c83d104d468e5c5cbc4f03271e8343e75ca4421ab43dc9f2dfa
|
|
| MD5 |
e7107e23a6167f98aa890d86c58f57f4
|
|
| BLAKE2b-256 |
f43f15586f682b8d38faa74e09bf219b3d989000c19c85578d64dfa30625a2c2
|
File details
Details for the file hehe_noob_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: hehe_noob_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4167905a50a868ec0256b5a8341017c0c79b01c0e56c206ca0ba112dfad644da
|
|
| MD5 |
8bef58b3bd9982d1749938d3ca03b1b1
|
|
| BLAKE2b-256 |
85f7970df8209a15de6b39bd4f4e9242e38bc4c4534cb7a7f7db318baa5ad064
|