PYPI PACKAGE AUDIT v0.1.0 Verbesserungsbedarf

rust-num-lib

In Rust geschriebene wissenschaftliche Computerbibliothek: lineare Algebra und Statistik

PyPkgScore rust-num-lib
Methodik & Kriterien ♥ Donate
620 / 1000
Schnellinstallation
pip install rust-num-lib
1. Governance
50/200
2. PEP-Metadaten
200/200
3. Sicherheit
150/200
4. Doku & SEO
155/200
5. CI-Engineering
65/200
📣 Prüfung teilen: Teilen Sie diesen Bericht und die Vorschau in der aktuellen Sprache
Advertisement
PYPI-TELEMETRIE

Downloads & Community-Verbreitung

Letzte 30 Tage (ohne Spiegelserver)
Letzte 7 Tage
785
Letzte 30 Tage
785
Gesamt (180 Tage)
785
Metrik / Ökosystem Status / Wert Quelle
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

Gesundheits- & Engineering-Analyse (5 Säulen)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP-Metadaten & Paketierung200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Sicherheit & Lieferkette150 / 200 ▾
Null CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS-Repository✓ 50 pts
4. Dokumentation, SEO & Ökosystem155 / 200 ▾
Strukturierte README✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Webseite / Fachartikel✓ 45 pts
5. Engineering, CI & Qualität65 / 200 ▾
Automatisierte Tests✕ 0 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Offizielle Dokumentation & Nutzungsleitfaden — rust-num-lib

PyPI Metadata v0.1.0
Vollständige Originaldokumentation anzeigen (Englisches 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