A comprehensive Scala library for portable scripting, data processing, and scientific computing.
The Universal Scripting Library (uni) provides a complete toolkit for writing portable, cross-platform scripts in Scala. Whether you're processing data files, performing linear algebra operations, or building command-line tools, uni offers a familiar, NumPy-inspired API with the safety and performance of Scala.
- π₯οΈ Portable Programming - Write once, run anywhere (Windows, macOS, Linux)
- π Data Import & Processing - CSV parsing, date/time handling, data cleaning
- π’ Linear Algebra - NumPy-compatible matrix operations with 99% API coverage
- β‘ Performance - BLAS-optimized operations, zero-copy views, efficient broadcasting
- β Reliability - 1461+ comprehensive tests ensuring correctness
π Portable Programming
Write scripts that work seamlessly across all platforms:
- Cross-platform file paths and operations
- Environment variable handling
- Process execution and piping
- Platform-specific conditionals
- Resource management
π― Command Line Parsing
Build professional command-line tools:
- Argument parsing with type safety
- Flag and option handling
- Subcommand support
- Automatic help generation
- Validation and error handling
π₯ Importing Data
Comprehensive data import capabilities:
- Parse various date/time formats to
LocalDateTime - Handle ISO 8601, RFC 3339, custom formats
- Timezone-aware parsing
- Flexible format detection
- Fast CSV parsing with configurable delimiters
- Header detection and custom column names
- Type inference and conversion
- Handle quoted fields, escaped characters
- Memory-efficient streaming
- Load matrices from CSV/TSV files
- Direct NumPy
.npyfile import - Integration with Mat library
- Automatic type conversion
Complete NumPy-compatible matrix operations:
- Quick Start Guide - Common operations and examples
- Complete API Reference - Detailed documentation with 1461 test examples
Quick Example:
TODOπ Quick Start Guide
Essential operations to get started:
Comprehensive documentation with examples from all 1461 tests:
- Matrix Creation - 87 tests
- Linear Algebra - 123 tests
- Statistical Functions - 56 tests
- Machine Learning - 18 tests
- And more...