Repository navigation
v2.0.0
π PyUnit 2.0 - Complete Rewrite
Major Overhaul
PyUnit 2.0 represents a complete reimagining of the project from the ground up. Every line of code has been rewritten using modern technologies and best practices.
π What's New
Complete Technology Stack Modernization
- Backend: Migrated to FastAPI (async/await) from Flask synchronous architecture
- Frontend: Rebuilt with Angular 18 using standalone components architecture
- Database: Upgraded to SQLAlchemy 2.0 with Alembic migrations
- Real-time Communication: Implemented WebSocket for live updates
- API: Full REST API with OpenAPI documentation (Swagger/ReDoc)
New Features
- π¨ Modern Dark Theme UI - Complete redesign with Bootstrap 5
- π Interactive Charts - Highcharts with adaptive downsampling and time range selector
- π Klipper Integration - G-code macro generation and HTTP camera embed pages
- π± Responsive Design - Works seamlessly on desktop, tablet, and mobile
- π³ Multi-platform Docker - Pre-built images for amd64 and arm64
- β‘ Real-time Updates - WebSocket-based live data streaming
- π Multiple Dryers - Support for multiple iDryer units
- π― Preset System - Configurable drying presets with timer and storage modes
- π Embed Pages - Standalone control and chart pages for Fluidd/Mainsail integration
Architecture Improvements
- Modular Design - Clear separation of concerns (cruds, endpoints, schemas, workers)
- Type Safety - Full TypeScript frontend + Pydantic backend validation
- Async Operations - Non-blocking I/O for better performance
- Database Migrations - Alembic for version-controlled schema changes
- Background Workers - Dedicated status monitoring and control loop
- Runtime Configuration - Dynamic API/WebSocket URL configuration for containers
DevOps Excellence
- GitHub Actions CI/CD - Automated multi-platform builds
- Docker Compose - One-command deployment
- Auto-installation Script -
run.shhandles everything automatically - Zero Compilation - Pull pre-built images, ready in minutes
π Breaking Changes
This is a complete rewrite. PyUnit 2.0 is NOT compatible with 1.x versions.
- New database schema (migration required)
- New API endpoints (all changed)
- New configuration format
- New frontend (complete rebuild)
π¦ Installation
git clone https://github.com/xatang/PyUnit.git
cd PyUnit
chmod +x run.sh
./run.sh