Discover and explore top open-source AI tools and projects—updated daily.
noahgiftFunctional Python and Rust for Data Science and AI
Top 85.7% on SourcePulse
This repository offers a functional, data-science-centric introduction to Python, specifically designed for individuals with no prior programming experience. It aims to provide a streamlined learning path using modern tools and emphasizes code quality, with a unique approach of making examples transpilable to Rust for enhanced robustness and cross-language parity.
How It Works
The project adopts a modernized teaching methodology focused on functional programming principles tailored for data science tasks. It enforces a strict, curated toolchain including uv for environment and dependency management, ruff for linting and formatting, and ty for type checking. A key innovation is the transpilation of Python examples to Rust via depyler, with the Rust code then subjected to rigorous checks using clippy and proptest to ensure high standards and maintainability.
Quick Start & Requirements
Installation is handled by make install, which leverages uv for setting up the Python environment and dependencies. Jupyter notebooks can be launched using uv run jupyter lab. The project mandates strict quality gates, including 100% branch coverage achieved via pytest and coverage, and utilizes icontract with hypothesis for provable contracts. All checks and setup can be executed with make all. Additional specifications are available in docs/specifications/upgrade-spec.md.
Highlighted Details
pytest and coverage.icontract and hypothesis to enforce provable4 days ago
Inactive
WecoAI
amitness