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.

25 Upvotes

8 comments sorted by

View all comments

0

u/[deleted] Oct 30 '26

[deleted] — view deleted comment

1

u/Emergency-Tutor-7 Oct 30 '26

Fair point, it would be faster for sure. I went pure Python because the install story is the whole feature: stdlib only, pip install scientific-computing-system, runs on any CPython 3.11+ with no compiler and no per-platform wheels. With Rust + PyO3 you either ship a wheel matrix or ask people to have a toolchain.

The cost is in the README, not hidden: 100x100 matmul takes 0.0696 s here vs NumPy's 0.000060 s, about 1155x on one CI run (order of magnitude only). So for dense numerics I tell people to use NumPy or the 2.0 build that sits on NumPy/SciPy/pandas. This one is for readable algorithms you can actually hack on.