Skip to content

v6.0.7

Choose a tag to compare

@wallneradam wallneradam released this 01 Jun 23:59
· 127 commits to main since this release

What's Changed

πŸš€ New Features

Performance Benchmarking (pyne benchmark)

  • New Command: Added pyne benchmark to measure script execution performance
  • Metrics: Calculates candles/second with warmup iterations for accurate measurements
  • Demo Data: Auto-generates demo.ohlcv with 2000 candles using random walk data (fixed seed)
  • Flexibility: Supports custom scripts and data files with automatic path resolution
  • Analysis: Provides statistical analysis (mean, min, max, std dev) of performance
  • Management: Added --recreate-demo flag to regenerate demo files in existing workdirs

Import Performance Optimization

  • Lazy Loading: Implemented lazy loading for AST transformers in import_hook.py
  • Smart Detection: Transformers now only load when @pyne decorator is detected
  • Performance: Significantly reduces import overhead for non-transformed modules

🎨 Improvements

Enhanced Run Command UX

  • Loading Feedback: Added loading spinner during PyneCore import phase
  • Smooth Progress: Implemented 60Hz queue-based progress bar updates to minimize overhead
  • Time Display: Added custom time columns showing milliseconds (MM:SS.mmm format)
  • Completion Fix: Fixed progress bar final update issue - now always shows 100% on completion

Chart Module Updates

  • Point Dataclass: Added new Point dataclass for chart coordinates (index, time, price)
  • Properties: Implemented chart module properties and visibility functions
  • Compatibility: Enhanced Pine Script compatibility

πŸ› Bug Fixes

  • Pip Installation: Handle site-packages bytecode by forcing recompilation and using marker files
  • License Format: Fixed license field format in pyproject.toml
  • Import Fixes: Fixed missing input import in strategy examples
  • Code Quality: Improved code formatting consistency

Notes

  • Version 6.0.6 follows PineVersion.Major.Minor
  • Fully compatible with Pine Script v6
  • GitHub Actions build now works with modern setuptools

Full Changelog

v6.0.5...v6.0.7