PYPI PACKAGE AUDIT v0.1.0 Needs Improvement

rust-num-lib

Scientific computing library written in Rust: linear algebra and statistics

PyPkgScore rust-num-lib
Methodology & Criteria โ™ฅ Donate
620 / 1000
Quick Install
pip install rust-num-lib
1. Governance
50/200
2. PEP Metadata
200/200
3. Security
150/200
4. Docs & SEO
155/200
5. CI Engineering
65/200
๐Ÿ“ฃ Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
785
Last 30 days
785
Total (180 days)
785
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) โ€” PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) โœ• Not detected PyPI Integrity / Sigstore
Django Packages โ€” djangopackages.org
PyTech / PyPkgScore 620 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 โ–พ
LICENSEโœ“ 50 pts
SECURITY.mdโœ• 0 pts
CONTRIBUTING.mdโœ• 0 pts
CODE_OF_CONDUCT.mdโœ• 0 pts
2. PEP Metadata & Packaging200 / 200 โ–พ
Wheel (.whl)โœ“ 50 pts
pyproject.tomlโœ“ 50 pts
Project URLsโœ“ 50 pts
Trove Classifiersโœ“ 50 pts
3. Security & Supply Chain150 / 200 โ–พ
Zero CVEs (OSV)โœ“ 60 pts
Trusted Publishing (OIDC)โœ• 0 pts
Snyk / Audit Linkโœ“ 40 pts
HTTPS Repositoryโœ“ 50 pts
4. Documentation, SEO & Ecosystem155 / 200 โ–พ
Structured READMEโœ“ 60 pts
Read the Docsโœ“ 50 pts
Django Packagesโœ• 0 pts
Website / Technical Articlesโœ“ 45 pts
5. Engineering, CI & Quality65 / 200 โ–พ
Automated Testsโœ• 0 pts
GitHub Actions CIโœ“ 65 pts
CHANGELOG.mdโœ• 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)โœ• 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide โ€” rust-num-lib

PyPI Metadata v0.1.0
Show full original documentation (English README) โ–พ

rust_num_lib

A scientific computing library written in Rust, with Python bindings via PyO3.

The goal of this project is to provide fast, low-level implementations of numerical algorithms (linear algebra, statistics) with a convenient Python interface โ€” combining Rust's performance with Python's ergonomics.

Modules

  • rust_num_lib.linalg โ€” linear algebra: matrix multiplication, factorizations (LU, QR, Cholesky), solving linear systems, eigenvalues and eigenvectors.
  • rust_num_lib.stats โ€” statistics: mean, standard deviation, sampling from distributions, data generation.

Requirements

  • Rust (stable toolchain, 2024 edition โ€” Rust 1.85+)
  • Python 3.8+
  • maturin โ€” tool for building Python extensions from Rust

Installation and Setup

The library is not (yet) published on PyPI, so it has to be built locally from source using maturin.

1. Clone the repository

git clone <repository-url>
cd rust_num_lib

2. Create and activate a virtual environment

Using a clean venv is recommended (not conda โ€” mixing the two causes conflicts during the build):

python3 -m venv .venv
source .venv/bin/activate        # Linux / macOS
# .venv\Scripts\activate         # Windows

Note: if you have a conda environment active, deactivate it first (conda deactivate), because maturin will refuse to build when both VIRTUAL_ENV and CONDA_PREFIX are set.

3. Install maturin

pip install maturin

4. Build and install the library

maturin develop --release

The --release flag matters โ€” without it the code compiles in debug mode (no optimizations), which is many times slower and unsuitable for benchmarking.

This command builds the extension and installs it into the active virtual environment.

5. Verify it works

import rust_num_lib.linalg as linalg

a = linalg.Matrix.identity(3)
print(a)

Tests

Unit tests (pure Rust, without PyO3) are run via Cargo:

cargo test

Project Structure

rust_num_lib/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ lib.rs          # entry point, PyO3 module registration
โ”‚   โ”œโ”€โ”€ python.rs       # Python bindings for Matrix methods
โ”‚   โ”œโ”€โ”€ linalg/         # linear algebra module
โ”‚   โ””โ”€โ”€ stats/          # statistics module
โ”œโ”€โ”€ Cargo.toml
โ”œโ”€โ”€ pyproject.toml
โ””โ”€โ”€ README.md