Skip to content

v2.0.0

Choose a tag to compare

@xatang xatang released this 16 Dec 09:27
· 33 commits to main since this release
51c3307

πŸŽ‰ 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.sh handles 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