A Python-based developer assistant application that provides an interactive chat interface with AI-powered code assistance and safe command execution capabilities.
- Interactive chat interface with AI assistance using OpenAI's API
- Secure command execution within project directories
- Real-time command output display
- Project directory management
- Safe file operations with path validation
- Dark-themed modern UI built with PyQt5
- Support for multiple command types including file operations
- Unicode content handling
- Multi-threaded operation for responsive UI
- Python 3.x
- Dependencies listed in requirements.txt:
- pytest>=7.4.0
- pytest-cov>=4.1.0
- PyQt5>=5.15.9
- openai>=1.3.5
- python-dotenv>=1.0.0
- Clone the repository:
git clone [repository-url]
cd Pseudo-Developer- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a .env file with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Run the application:
python -m src.main- Enter your project directory in the input field and click 'Save'
- Start chatting with the AI assistant in the message input area
- View command outputs and execution results in the lower panel
The project follows clean code principles and is structured for maintainability:
src/- Core application modulestests/- Comprehensive test suite- Modern object-oriented design with SOLID principles
Execute the test suite with coverage reporting:
python -m tests.run_tests- All file operations are restricted to the specified project directory
- Path validation prevents directory traversal attacks
- Command execution is limited to safe operations
- Input sanitization for all file operations