RustPAM
High-performance k-medoids (based on OneBatchPAM) clustering with a Rust core.
Installation
Install from PyPI:
pip install rustpam
For development installation:
# Clone the repository
git clone https://github.com/yourusername/rustpam.git
cd rustpam
# Install in development mode
pip install maturin
maturin develop --release
Quick Start
import numpy as np
from rustpam import OneBatchPAM
# Sample data
X = np.random.randn(1000, 10).astype(np.float32)
# Create and fit model
model = OneBatchPAM(
n_medoids=3,
distance="euclidean",
max_iter=50,
random_state=42,
n_threads=2,
)
model.fit(X)
# Results
print("Medoid indices:", model.medoid_indices_)
print("Inertia:", model.inertia_)
print("Iterations:", model.n_iter_)
# Predict new samples
X_new = np.random.randn(20, X.shape[1]).astype(np.float32)
labels = model.predict(X_new)
print("Predicted labels:", labels)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Metadata
Release files for rustpam 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rustpam-0.2.1.tar.gz | 23.9 kB | With provenance | Details for rustpam-0.2.1.tar.gz |
Built distributions (wheels)
Total release size: 4.1 MB
Release files / rustpam-0.2.1.tar.gz
| Download URL | rustpam-0.2.1.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af00bba852f9b5d5924af8813ab4cc911c102bea7d3c0228d4857353ec608f97
|
|
BLAKE2b-256 checksum How to use checksums |
f2ece72d92e900c9d076d537ee2b8aa55554977f9331cd1cf2d3363e49135bf6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp313-cp313-win_amd64.whl
| Download URL | rustpam-0.2.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 177.7 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
19a831c2f69320e8f5a9d511f2c1912ca4c96004b4d28d1a7f28bb02775ca842
|
|
BLAKE2b-256 checksum How to use checksums |
6ebb3bba3c3adf88694b0371711298deadd4607e9e723fa4f41eb2fc8963bdbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | rustpam-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 303.9 kB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
961e8247bd88e9935f0208a4144a89499ad87ccc719bd986be018cd9279d0614
|
|
BLAKE2b-256 checksum How to use checksums |
faa968b0989c1e6761eb71ac0ee9419185d4532a37fa1e2a00b92b809a3bb388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | rustpam-0.2.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 265.9 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
918a57b91d0cf99804930fa20159a5aec2ee622b6df030fe9786c819d8e8577d
|
|
BLAKE2b-256 checksum How to use checksums |
a5875e45c1ffed4e6f70b555aa0f4736cf90b44b8eebdf4eae9e6b5c44d8a28d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl
| Download URL | rustpam-0.2.1-cp313-cp313-macosx_10_12_x86_64.whl |
|---|---|
| Size | 280.0 kB |
| Tags | CPython 3.13 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
6fbeb2b755c8a899c937023c0c6cbc6f45f74688f44293cba158ebdf58a3d71b
|
|
BLAKE2b-256 checksum How to use checksums |
e5b572bf90b901f192c0c24994ce7539dadef159764b6f423aa732eb1fe5e4dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp312-cp312-win_amd64.whl
| Download URL | rustpam-0.2.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 177.7 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
5230a10298f0db40a558b58d706e71ae1bdc4900b6b6c6ccb8217c7722b0937d
|
|
BLAKE2b-256 checksum How to use checksums |
a2da090c91fc708e4595fb909ec7938d00f33b2dea56512a65693fa7d758ee4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | rustpam-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 304.0 kB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
62a2e85660164bca4033e3d6ca528887df89e3dc67b5e8d9b07a9e38f9b0da96
|
|
BLAKE2b-256 checksum How to use checksums |
0f7303a76560cfc50d1ec3d5cbf1d08967409a5da2bf2827067db58449a014fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | rustpam-0.2.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 265.9 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
03e905ae5313707cddaa00c2fdd2f6762c2130dc4cdeb47e163d46c4f386cbaa
|
|
BLAKE2b-256 checksum How to use checksums |
53d98ebb43c038b0980ea840ed7e5df58b67754d3db9a3feb9c2d706f60378ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | rustpam-0.2.1-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 280.0 kB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
3ac678014d68652569e6c2e4c12777ab6776549ec61fd06df0db2e0473fd91fe
|
|
BLAKE2b-256 checksum How to use checksums |
0379faf773ecbf8dca05cf02bc5c0692753c6c00021951252910a089eb3964be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp311-cp311-win_amd64.whl
| Download URL | rustpam-0.2.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 177.1 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
208ab9b719cc3aa320a5c6d6e6f59a4fb8ccfbea7c349837a496add882cabd8e
|
|
BLAKE2b-256 checksum How to use checksums |
065338c0e2b704dc684054e418ac8af02f4769918dc23d507f6ac587c0972611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | rustpam-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 305.7 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
4cad2de7b2f15b39c1d444ee4c21df96e67c9c0b458aa68b82bf80aa8eeccb36
|
|
BLAKE2b-256 checksum How to use checksums |
37ed4b576d651d27f42fe0916bae6f6610f968cd478788ff811b73f34da79174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | rustpam-0.2.1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 266.0 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9836e3efdc2191627ed56134b01d8205323eeb6f0453de79f5976ef0ec406e73
|
|
BLAKE2b-256 checksum How to use checksums |
fab2869b69ad28a112383d0a22cef62112f75097819a0357c2e1af2f4bcc0da1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl
| Download URL | rustpam-0.2.1-cp311-cp311-macosx_10_12_x86_64.whl |
|---|---|
| Size | 280.0 kB |
| Tags | CPython 3.11 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
cb09a50386bcf8bb66553de8ac694298e0359ec620f4634277ac191195072f76
|
|
BLAKE2b-256 checksum How to use checksums |
b9ac2cff2a009df498e1885162688893b41b8499c4732f1dd052af358eec2a93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp310-cp310-win_amd64.whl
| Download URL | rustpam-0.2.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 177.3 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
87aabe1358f5e3a9c794c50178b1581a6b32caf072de526987701425ea083c7f
|
|
BLAKE2b-256 checksum How to use checksums |
43a9bc5a52ea205aaec52e4925f9dc81589a533d2686705ad2c34bb1925037b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | rustpam-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 305.9 kB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
592c1cfaf8412beac95c95cb24caad24a0478d93122a9f590bef6ff3a981ed96
|
|
BLAKE2b-256 checksum How to use checksums |
d09df1b0fb94f9c931c7f465fc2c0d52cfd1eb73f912a7777f6204b8e14b4b68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | rustpam-0.2.1-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 266.1 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2744d76b8f5cca7e5cafb6b686b0fa80d0ad35bd4bc442e71c0d3977eaee8243
|
|
BLAKE2b-256 checksum How to use checksums |
1979feaaceea3261d7b7c9778c2c442bb161190da2acb5c8721e2b73a8c36c82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logRelease files / rustpam-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl
| Download URL | rustpam-0.2.1-cp310-cp310-macosx_10_12_x86_64.whl |
|---|---|
| Size | 280.2 kB |
| Tags | CPython 3.10 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b27d7c7de0e72d9e82ceec89039b7a6ba425c2a3df2004f207528e7bd2cdae5f
|
|
BLAKE2b-256 checksum How to use checksums |
dbb6c2e6be58481fd7db970585784f7ae4109995c6d55c6c254f7b2635dc2468
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logSecurity for rustpam 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 17 files in this release have been uploaded with provenance metadata.
Attestation for rustpam-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.