r/madeinpython • • Oct 30 '26

I made a zero-dependency scientific computing library in pure Python

I made scientific-computing-system, a scientific library written entirely in pure Python. The core installs with no runtime dependencies, so the algorithms are plain readable code instead of calls into compiled extensions.

It has 36 modules and 505 exported names covering linear algebra, ODE and PDE solvers, numerical integration, optimization, statistics and probability, uncertainty propagation and sensitivity analysis, validation helpers, and a small workflow layer. Every run can write a manifest with inputs, seeds, versions and hashes, so a result can be re-checked later.

There is also a cds CLI with 13 subcommands, 34 runnable examples, and optional lazy adapters for NumPy, SciPy, statsmodels, scikit-learn, SymPy and Z3. The package is MIT licensed and targets Python 3.11 and newer.

Honest limitation: it is much slower than NumPy on dense numerics. The repo benchmark records about 1155x slower on a 100x100 matrix multiply in one CI run. It is meant for learning, prototyping and reproducible runs, not heavy production work.

Code: https://github.com/Furox-Art/scientific-computing-system

PyPI: pip install scientific-computing-system

npm: npm i -g scientific-computing-system

Docs: https://furox-art.github.io/scientific-computing-system/

If any part interests you I can explain the design in more detail.

24 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Emergency-Tutor-7 Oct 30 '26

Students first, I think. The failure modes the library targets - units, run provenance, reproducible inputs - hurt most while learning, because at that stage there is no habit yet of telling a plausible result from a checked one. People writing reproducible papers are the second audience; the run manifest is aimed at their methods sections, though most already have a lab toolchain, so pure-Python speed will push them toward teaching and reference use rather than heavy numerics. The side-by-side ODE example is a fair suggestion; today the closest thing is the examples/ directory, which has both .py scripts and .ipynb notebooks.