Skip to main content

sparse_dot_topn

MacOS Linux Windows License ruff

Release_date PyPi Downloads

sparse_dot_topn provides a fast way to performing a sparse matrix multiplication followed by top-n multiplication result selection.

Comparing very large feature vectors and picking the best matches, in practice often results in performing a sparse matrix multiplication followed by selecting the top-n multiplication results.

sparse_dot_topn provides a (parallelised) sparse matrix multiplication implementation that integrates selecting the top-n values, resulting in a significantly lower memory footprint and improved performance. On Apple M2 Pro over two 20k x 193k TF-IDF matrices sparse_dot_topn can be up to 6 times faster when retaining the top 10 values per row and utilising 8 cores. See the benchmark directory for details.

Usage

sp_matmul_topn supports {CSR, CSC, COO} matrices with {32, 64}bit {int, float} data. Note that COO and CSC inputs are converted to the CSR format and are therefore slower. Two options to further reduce memory requirements are threshold and density. Optionally, the values can be sorted such that the first column for a given row contains the largest value. Note that sp_matmul_topn(A, B, top_n=B.shape[1]) is equal to sp_matmul(A, B) and A.dot(B).

If you are migrating from v0.* please see the migration guide below for details.

import scipy.sparse as sparse
from sparse_dot_topn import sp_matmul, sp_matmul_topn

A = sparse.random(1000, 100, density=0.1, format="csr")
B = sparse.random(100, 2000, density=0.1, format="csr")

# Compute C and retain the top 10 values per row
C = sp_matmul_topn(A, B, top_n=10)

# or paralleslised matrix multiplication without top-n selection
C = sp_matmul(A, B, n_threads=2)
# or with top-n selection
C = sp_matmul_topn(A, B, top_n=10, n_threads=2)

# If you are only interested in values above a certain threshold
C = sp_matmul_topn(A, B, top_n=10, threshold=0.8)

# If you set the threshold we cannot easily determine the number of non-zero
# entries beforehand. Therefore, we allocate memory for `ceil(top_n * A.shap[0] * density)`
# non-zero entries. You can set the expected density to reduce the amount pre-allocated
# entries. Note that if we allocate too little an expensive copy(ies) will need to hapen.
C = sp_matmul_topn(A, B, top_n=10, threshold=0.8, density=0.1)

Installation

sparse_dot_topn provides wheels for CPython 3.9 to 3.14 for:

  • Windows (64bit)
  • Linux (64bit)
  • MacOS (x86 and ARM)
pip install sparse_dot_topn

sparse_dot_topn relies on a C++ extension for the computationally intensive multiplication routine. Note that the wheels vendor/ships OpenMP with the extension to provide parallelisation out-of-the-box. If you run into any issues with OpenMP see INSTALLATION.md for help or run the function without specifying the n_threads argument.

Installing from source requires a C++17 compatible compiler. If you have a compiler available it is advised to install without the wheel as this enables architecture specific optimisations.

You can install from source using:

pip install sparse_dot_topn --no-binary sparse_dot_topn

Build configuration

sparse_dot_topn provides some configuration options when building from source. Building from source can enable architecture specific optimisations and is recommended for those that have a C++ compiler installed. See INSTALLATION.md for details.

Distributing the top-n multiplication of two large O(10M+) sparse matrices over a cluster

The top-n multiplication of two large O(10M+) sparse matrices can be broken down into smaller chunks. For example, one may want to split sparse matrices into matrices with just 1M rows, and do the the (top-n) multiplication of all those matrix pairs. Reasons to do this are to reduce the memory footprint of each pair, and to employ available distributed computing power.

The pairs can be distributed and calculated over a cluster (eg. we use a spark cluster). The resulting matrix-products are then zipped and stacked in order to reproduce the full matrix product.

Here's an example how to do this, where we are matching 1000 rows in sparse matrix A against 600 rows in sparse matrix B, and both A and B are split into chunks.

import numpy as np
import scipy.sparse as sparse
from sparse_dot_topn import sp_matmul_topn, zip_sp_matmul_topn

# 1a. Example matching 1000 rows in sparse matrix A against 600 rows in sparse matrix B.
A = sparse.random(1000, 2000, density=0.1, format="csr", dtype=np.float32, random_state=rng)
B = sparse.random(600, 2000, density=0.1, format="csr", dtype=np.float32, random_state=rng)

# 1b. Reference full matrix product with top-n
C_ref = sp_matmul_topn(A, B.T, top_n=10, threshold=0.01, sort=True)

# 2a. Split the sparse matrices. Here A is split into three parts, and B into five parts.
As = [A[i*200:(i+1)*200] for i in range(5)]
Bs = [B[:100], B[100:300], B[300:]]

# 2b. Perform the top-n multiplication of all sub-matrix pairs, here in a double loop.
# E.g. all sub-matrix pairs could be distributed over a cluster and multiplied there.
Cs = [[sp_matmul_topn(Aj, Bi.T, top_n=10, threshold=0.01, sort=True) for Bi in Bs] for Aj in As]

# 2c. top-n zipping of the C-matrices, done over the index of the B sub-matrices.
Czip = [zip_sp_matmul_topn(top_n=10, C_mats=Cis) for Cis in Cs]

# 2d. stacking over zipped C-matrices, done over the index of the A sub-matrices
# The resulting matrix C equals C_ref.
C = sparse.vstack(Czip, dtype=np.float32)

Migrating to v1.

sparse_dot_topn v1 is a significant change from v0.* with a new bindings and API. The new version adds support for CPython 3.12 and now supports both ints as well as floats. Internally we switched to a max-heap to collect the top-n values which significantly reduces memory-footprint. The former implementation had O(n_columns) complexity for the top-n selection where we now have O(top-n) complexity. awesome_cossim_topn has been deprecated and will be removed in a future version.

Users should switch to sp_matmul_topn which is largely compatible:

For example:

C = awesome_cossim_topn(A, B, ntop=10)

can be replicated using:

C = sp_matmul_topn(A, B, top_n=10, threshold=0.0, sort=True)

API changes

  1. ntop has been renamed to topn
  2. lower_bound has been renamed to threshold
  3. use_threads and n_jobs have been combined into n_threads
  4. return_best_ntop option has been removed
  5. test_nnz_max option has been removed
  6. B is auto-transposed when its shape is not compatible but its transpose is.

The output of return_best_ntop can be replicated with:

C = sp_matmul_topn(A, B, top_n=10)
best_ntop = np.diff(C.indptr).max()

Default changes

  1. threshold no longer 0.0 but disabled by default

This enables proper functioning for matrices that contain negative values. Additionally a different data-structure is used internally when collecting non-zero results that has a much lower memory-footprint than previously. This means that the effect of the threshold parameter on performance and memory requirements is negligible. If the threshold is None we pre-compute the number of non-zero entries, this can significantly reduce the required memory at a mild (~10%) performance penalty.

  1. sort = False, the result matrix is no longer sorted by default

The matrix is returned with the same column order as if not filtering of the top-n results has taken place. This means that when you set top_n equal to the number of columns of B you obtain the same result as normal multiplication, i.e. sp_matmul_topn(A, B, top_n=B.shape[1]) is equal to A.dot(B).

Contributing

Contributions are very welcome, please see CONTRIBUTING for details.

Contributors

This package was developed and is maintained by authors (previously) affiliated with ING Analytics Wholesale Banking Advanced Analytics. The original implementation was based on modified version of Scipy's CSR multiplication implementation. You can read about it in a blog (mirror) written by Zhe Sun.

Metadata

Release files for sparse-dot-topn 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sparse-dot-topn 1.2.1
File Size Uploaded Provenance Actions
sparse_dot_topn-1.2.1.tar.gz 47.8 kB With provenance Details for sparse_dot_topn-1.2.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sparse-dot-topn 1.2.1
File Actions
sparse_dot_topn-1.2.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for sparse_dot_topn-1.2.1-cp312-abi3-win_amd64.whl
sparse_dot_topn-1.2.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for sparse_dot_topn-1.2.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_x86_64.whl CPython 3.12 abi3 macOS 12.0+ x86-64 Details for sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_x86_64.whl
sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_arm64.whl CPython 3.12 abi3 macOS 12.0+ ARM64 Details for sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_arm64.whl
sparse_dot_topn-1.2.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for sparse_dot_topn-1.2.1-cp311-cp311-win_amd64.whl
sparse_dot_topn-1.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for sparse_dot_topn-1.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 12.0+ x86-64 Details for sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_x86_64.whl
sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl CPython 3.11 CPython 3.11 macOS 12.0+ ARM64 Details for sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl
sparse_dot_topn-1.2.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for sparse_dot_topn-1.2.1-cp310-cp310-win_amd64.whl
sparse_dot_topn-1.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for sparse_dot_topn-1.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 12.0+ x86-64 Details for sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_x86_64.whl
sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_arm64.whl CPython 3.10 CPython 3.10 macOS 12.0+ ARM64 Details for sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_arm64.whl
sparse_dot_topn-1.2.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for sparse_dot_topn-1.2.1-cp39-cp39-win_amd64.whl
sparse_dot_topn-1.2.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for sparse_dot_topn-1.2.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_x86_64.whl CPython 3.9 CPython 3.9 macOS 12.0+ x86-64 Details for sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_x86_64.whl
sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl CPython 3.9 CPython 3.9 macOS 12.0+ ARM64 Details for sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl

Total release size: 6.9 MB

Release files / sparse_dot_topn-1.2.1.tar.gz

Download URL sparse_dot_topn-1.2.1.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ec92cf92893692b0d5c5704ebfbdfa258f5129094744e63753a0eaaf9a9c103b
BLAKE2b-256 checksum
How to use checksums
d9d4b3c97c7ef82aa3ace92b2e98d1379abe7ed0fab23576445a2c6ab8f4da2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp312-abi3-win_amd64.whl

Download URL sparse_dot_topn-1.2.1-cp312-abi3-win_amd64.whl
Size 443.7 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ecf399c2c2f99e55f442385674cb1488cc22ac0e57005d0eebf89bf452aacca9
BLAKE2b-256 checksum
How to use checksums
b562e0b25353f23d49e3688cdaee248a26f20d6bccae3cbe681467bc8b2c5b4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 319.4 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
8d1327177126bac92fdc74b42f1572fdbf6afacf7d265e3a06cb62b66dfa2f4a
BLAKE2b-256 checksum
How to use checksums
acc062dfb5396decd9e8c39b94487a6efecdac7de78f11f97551f8eb312519ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_x86_64.whl
Size 496.6 kB
Tags CPython 3.12 abi3 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
8caf59d47454f337be6575d6f3c488c5dfcae666b0ff9b24d4799acc2d635253
BLAKE2b-256 checksum
How to use checksums
19cde225c5cef7c68feffb346504e6c50bff6c5aa046dcbb055380f10c22c6ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_arm64.whl

Download URL sparse_dot_topn-1.2.1-cp312-abi3-macosx_12_0_arm64.whl
Size 437.0 kB
Tags CPython 3.12 abi3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
56f0edf22bc61b72a384ba9dd818366d28195b5d6fd802488c8dc83d0d00d472
BLAKE2b-256 checksum
How to use checksums
f692b7e1c8b8fa8d12d5fc43f98356ea1ac8c6bbe0b34931bbcbf8f29aadb640
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp311-cp311-win_amd64.whl

Download URL sparse_dot_topn-1.2.1-cp311-cp311-win_amd64.whl
Size 444.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
9d4e01d7eb4b3f9bca0ba37e1c0db834959c69f085e9c5bbe90762092d3f4665
BLAKE2b-256 checksum
How to use checksums
d4dd1f3d51345d4b9a67633fc0d2554ea9c71edab2ec49e5172e977279cc50ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 323.6 kB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4917fff1d5802bed59dbe740843d1a489a4c639932db1990ed8cf84818c33f0e
BLAKE2b-256 checksum
How to use checksums
ccb709e30a5593baf42c8b82a657a2b5b5c50b98fdc45537090620c9cb663746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_x86_64.whl
Size 498.7 kB
Tags CPython 3.11 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
ac3760a0c8bd2cf12fa0a1fe4a03f8144589e237cdad98d0d0cdfa686b150ad5
BLAKE2b-256 checksum
How to use checksums
bcc822c431a7bd7f5b1e30da5984821545c03068479327134b7bdee903d0a0b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl

Download URL sparse_dot_topn-1.2.1-cp311-cp311-macosx_12_0_arm64.whl
Size 439.5 kB
Tags CPython 3.11 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
fc6e619f2321ec763d9a0a2abcdc8b298eb487be2919f39a1cca56c1328389f5
BLAKE2b-256 checksum
How to use checksums
5b60a92cc5febc7ebf2f9db7d9be57dade05ff3a0c82fc67c1e2acecf016a5b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp310-cp310-win_amd64.whl

Download URL sparse_dot_topn-1.2.1-cp310-cp310-win_amd64.whl
Size 444.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
11bdfc9ae43ffff73975b52a58e4c7f82a82ade01fd07d2da6d8f6f674fe0b98
BLAKE2b-256 checksum
How to use checksums
9d8df8aace16c5d57c1fa998b5cc935bcc7e78e8078baed933a07fbcc14d5ca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 324.0 kB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
058774e42b7db4619a7c446299b88c0d4b8ed041f66fd82d38ba6e280b6fd4f1
BLAKE2b-256 checksum
How to use checksums
88bc6eaaf6f210fdf449ae78e97bb88c0835ddf49478091a82aece36c03af7c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_x86_64.whl
Size 499.0 kB
Tags CPython 3.10 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
603105a201a673ad163fd8211c238daaeca19abea3376d0eebce940055764404
BLAKE2b-256 checksum
How to use checksums
b923d598385c33fa08bf95b727d686e23aed6aa1a45c6a0ae1cc30afe304a0b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_arm64.whl

Download URL sparse_dot_topn-1.2.1-cp310-cp310-macosx_12_0_arm64.whl
Size 439.8 kB
Tags CPython 3.10 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
fee161305586151c4e247ae805b1c6b1d3320c0eb8b1c7bb68be0e31ce43ef46
BLAKE2b-256 checksum
How to use checksums
b744a618b8e7fa162a45309fabb89c6e3ce446e97a5711f0e4ff6cbdc25ad71f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp39-cp39-win_amd64.whl

Download URL sparse_dot_topn-1.2.1-cp39-cp39-win_amd64.whl
Size 420.6 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
2c826e17bb6706a366515785d21e8bca5269e2454723ff649ff3432e9ea6cf08
BLAKE2b-256 checksum
How to use checksums
96ef4d53096525c8e7e10beff8f9385db2cb9e33376134e722672a4590201047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 322.1 kB
Tags CPython 3.9 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4d91746e3b3b925e24bfc148dd45411497e3248d57e5a67aad346780edf1f71f
BLAKE2b-256 checksum
How to use checksums
d9518bf22df33e317b5b9e5b36e4036f260655b1e3a2d18ee1b88b4481e419c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_x86_64.whl

Download URL sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_x86_64.whl
Size 504.4 kB
Tags CPython 3.9 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
8948aa2a59bef5cfd46f693ce0603dd26cacc58c93129dcb49cefa43b2a511eb
BLAKE2b-256 checksum
How to use checksums
2ac9268bd05953f571d3b3ab7250c96a787de995be7acd6f883bc0445e26e41b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Release files / sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl

Download URL sparse_dot_topn-1.2.1-cp39-cp39-macosx_12_0_arm64.whl
Size 446.2 kB
Tags CPython 3.9 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
1caa6568db0b4a9f5098d3c205963da5d654d8cb77d9146c7b663758dea2cf8a
BLAKE2b-256 checksum
How to use checksums
dfc78a6ea73c84b200ee8897bed44ba7569a338a03e070e9797f55b36a65fd92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 25, 2026.

Transparency log

Security for sparse-dot-topn 1.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.

Select from 17 files

Attestation for sparse_dot_topn-1.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 Nov 25, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page