WukongStack is a dynamic CLI tool that generates a full-stack web application skeleton
Project description
🐒 Wukong Stack
WukongStack Wukong is a revolutionary developer toolkit that empowers engineers with intelligent coding assistance, project scaffolding, and automated code review capabilities. Inspired by the legendary Monkey King's wisdom and magic, Sun Wukong, from Chinese mythology, Wukong helps developers create, refactor, and review code with unparalleled intelligence.Wukong streamlines development by delivering a secure, testable, and modern project structure for rapid prototyping and production-ready applications.
🔥 "I've got all the magic you need for your coding journey!"
🌟 Features
🔧 Project Generation & Initialization
- Create project structures for multiple frameworks (Flask, FastAPI, React, Vue.js, etc.)
- Initialize existing projects with pre-configured templates
- Support for Python packages, Node.js modules, Go applications, and more
💻 AI-Assisted Coding
- Interactive shell with persistent conversation history
- Code generation from natural language prompts
- Intelligent code extraction and file saving
- Multi-file project scaffolding powered by LLMs
🕵️ Code Review & Refactoring
- Automated code review for logic flaws, vulnerabilities, and best practices
- Smart refactoring suggestions to improve code quality
- Unit test generation for existing codebases
- Detailed explanations of complex code sections
🔍 Intelligence Engine
- Conversation history management with save/load capabilities
- Configurable LLM settings (local Ollama support)
- Security-conscious file operations with validation
- Multi-language source code parsing and handling
📦 Installation
Install via pip:
pip install wukong-stack
Note: Requires Python 3.10+
🚀 Quick Start
Initialize a new project
wukong init
Create a full-stack web app skeleton
wukong create
Review existing code for vulnerabilities or logic errors
wukong review --path ./src/app.py
Generate unit tests automatically from current codebase
wukong unittest --path ./src/
Refactor problematic sections in your code
wukong refactor --path ./src/old_module.py
Start the interactive shell for continuous assistance
wukong shell
Use AI Code Assistant with custom prompts or files
wukong code --prompt "Write a Python function that sorts a list of dictionaries by their 'name' key"
Or use a file:
wukong code --prompt-file ./prompts/api_setup.txt
Save LLM output and extract code blocks:
wukong code --prompt "Generate REST API routes for user authentication" --save-llm-output --extract-code
AI Assistant Configuration Guide
Welcome to the AI Assistant setup instructions. You have two options to configure your AI assistant:
Option 1: Use Remote OpenAI Compatible LLM (Recommended for beginners)
If you want to use a remote service like OpenAI, Anthropic, or other providers:
Step 1: Configure Basic Settings
# Set the API key (replace YOUR_API_KEY with your actual key)
wukong config set llm.api_key YOUR_API_KEY --global
# Set the timeout in seconds (optional)
wukong config set llm.timeout 30 --global
# If using a custom base URL, set it here
# wukong config set llm.base_url https://api.openai.com/v1 --global
Step 2: Verify Configuration
# Check current configuration
wukong config get llm.api_key
wukong config get llm.timeout
wukong config get llm.base_url
Step 3: Test Your Setup
Run a simple test to ensure everything works:
wukong chat "Hello, how are you?"
Option 2: Install Local LLM (For Users with GPU)
Installing Ollama
-
Visit the official Ollama website: https://ollama.com/download
-
Download and install Ollama for your operating system
-
Follow the installation instructions specific to your OS:
- Windows: Run the installer and follow prompts
- macOS: Use Homebrew or download from website:
brew install ollama - Linux: Install via package manager or curl script
-
Once installed, run Ollama server:
ollama serve
- Pull a model (example with llama3):
ollama pull llama3
- Configure your AI assistant to use local LLM:
wukong config set llm.base_url http://localhost:11434/v1 --global
wukong config set llm.api_key placeholder --global # Not required for Ollama
wukong config set llm.timeout 60 --global
Installing LM Studio
-
Visit the official LM Studio website: https://lmstudio.ai
-
Download and install LM Studio for your operating system:
- Windows: Download .exe installer
- macOS: Download .dmg file
- Linux: Use package manager or download from website
-
Launch LM Studio and follow the setup wizard to:
- Install models (download preferred models like Llama, Mistral, etc.)
- Configure local server settings
- Set up API access if needed
-
Once installed, configure your AI assistant:
wukong config set llm.base_url http://localhost:1234/v1 --global
wukong config set llm.api_key placeholder --global # Not required for LM Studio
wukong config set llm.timeout 60 --global
Configuration Parameters Explained
- llm.base_url: The endpoint URL of your LLM service (optional for OpenAI, mandatory for local)
- llm.api_key: Your API authentication key
- llm.timeout: Maximum time in seconds to wait for responses from the AI
Quick Setup Commands Summary
For Remote Services:
wukong config set llm.api_key YOUR_API_KEY --global
wukong config set llm.timeout 30 --global
For Local Ollama:
wukong config set llm.base_url http://localhost:11434/v1 --global
wukong config set llm.timeout 60 --global
For Local LM Studio:
wukong config set llm.base_url http://localhost:1234/v1 --global
wukong config set llm.timeout 60 --global
Troubleshooting Tips
- Connection Issues: Ensure your local server is running before configuring
- Authentication Problems: Double-check that your API keys are correct
- Timeout Errors: Increase timeout values if you're experiencing slow responses
Choose the option that best fits your setup and requirements!
📄 License
MIT © Sunny Liu
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 wukong_stack-0.1.4.tar.gz.
File metadata
- Download URL: wukong_stack-0.1.4.tar.gz
- Upload date:
- Size: 84.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ef25fd4b2b453c497c050ff90ad6452fbbd99fddcbb090050450a7b298bc38d
|
|
| MD5 |
d2d66359bb70356a275cf5a751dfda35
|
|
| BLAKE2b-256 |
4df38f1549fa1a68960ef163d17c638344d2b08c03ba5c565fc161038198697b
|
File details
Details for the file wukong_stack-0.1.4-py3-none-any.whl.
File metadata
- Download URL: wukong_stack-0.1.4-py3-none-any.whl
- Upload date:
- Size: 106.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d345f16fed0283e728f3e3050ecaae14b4397fd4ea77f50666a412c64178895
|
|
| MD5 |
219f23fa5a5fe15ca3b5534c563fdff2
|
|
| BLAKE2b-256 |
0ffcc0a85c6be35c85958d2c2ce5bf1d50341f48c099b1642959ed6ce9a267ed
|