rustify-stdlib 0.1.0

Prebuilt Rust routines (PyO3) for Python acceleration
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 5 items with examples
  • Size
  • Source code size: 26.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 339.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • homezloco

rustify-stdlib

Prebuilt Rust routines (PyO3) for Python acceleration. Build with maturin.

Install (dev)

# from rustify-ml/rustify-stdlib
maturin develop --release
python - <<'PY'
import rustify_stdlib as rs
print(rs.euclidean([0.0,3.0,4.0],[0.0,0.0,0.0]))
PY

Install (crates.io + pip)

pip install maturin
pip install rustify-stdlib  # once published
python - <<'PY'
import rustify_stdlib as rs
print(rs.dot_product([1.0,2.0],[3.0,4.0]))
PY

Functions

  • euclidean(p1, p2) -> float
  • dot_product(a, b) -> float
  • moving_average(signal, window) -> list[float]
  • convolve1d(signal, kernel) -> list[float]
  • bpe_encode(text, merges=[]) -> list[int]

Testing

cargo test
cargo bench --bench speed -- --quick