Skip to main content

emeans

Fast e-means clustering, written in Rust. e-means is a k-means replacement from Meta FAIR that reaches a lower error in about a tenth of the passes.

pip install emeans

Same class as faiss NumpyEmeans, so most code only needs a new import:

import numpy as np
from emeans import Emeans

x = np.random.rand(200_000, 64).astype("float32")
em = Emeans(64, 500)
centroids, labels = em.train(x)
distances, nearest = em.assign(x)

Needs only numpy. 1.7x to 6x faster than faiss NumpyEmeans in our tests, same error. Numbers and source: https://github.com/savannahar68/emeans

Metadata

Release files for emeans 0.1.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 emeans 0.1.1
File Size Uploaded Provenance Actions
emeans-0.1.1.tar.gz 29.4 kB With provenance Details for emeans-0.1.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for emeans 0.1.1
File Actions
emeans-0.1.1-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for emeans-0.1.1-cp39-abi3-win_amd64.whl
emeans-0.1.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for emeans-0.1.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
emeans-0.1.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for emeans-0.1.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
emeans-0.1.1-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for emeans-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
emeans-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for emeans-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 1.8 MB

Release files / emeans-0.1.1.tar.gz

Download URL emeans-0.1.1.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
25de379e204aaa3fc716b068b55da936bdad3b7e71ec5d8151b0a7a7e9a6f42f
BLAKE2b-256 checksum
How to use checksums
9f926a7cd492a99ae2c47998087725cdc2539eb241ccac1056bc76a64bd3b13a
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 10, 2026.

Transparency log

Release files / emeans-0.1.1-cp39-abi3-win_amd64.whl

Download URL emeans-0.1.1-cp39-abi3-win_amd64.whl
Size 280.9 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2b047891536105bc28e07c81e9ae1d8929a66440055c6d104a8c2ee0d6baba8e
BLAKE2b-256 checksum
How to use checksums
f62449bddebbc48c5e7f7576f2a21482ae55599376be96febc0d377953ebee11
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 10, 2026.

Transparency log

Release files / emeans-0.1.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL emeans-0.1.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 417.3 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0a62feef377c0cb300c808062b06e1d3e0055008de3f187bfed6feb65498f3f3
BLAKE2b-256 checksum
How to use checksums
058cefe41bfa4177b482ea5b46c87c157188c939ade873589310d6259dcfb490
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 10, 2026.

Transparency log

Release files / emeans-0.1.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL emeans-0.1.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 391.3 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9b66419b8751f62ce5fa7e303b782efa0a4291de5e37a227a526a614e1490b0a
BLAKE2b-256 checksum
How to use checksums
8ca2d9a889a0596e05de8b0caf4da8e0e24355fe712151efbb15e3f6069ad36b
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 10, 2026.

Transparency log

Release files / emeans-0.1.1-cp39-abi3-macosx_11_0_arm64.whl

Download URL emeans-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
Size 352.9 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0f1d6b8111d572a7d8f9dfcf24d441cb6194da22cf4d4db5408322a2f418a8dc
BLAKE2b-256 checksum
How to use checksums
ca50c8954e6c90a5944854e8bf7f8824ded34ffdf3df2acabcede3202053ba94
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 10, 2026.

Transparency log

Release files / emeans-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl

Download URL emeans-0.1.1-cp39-abi3-macosx_10_12_x86_64.whl
Size 376.7 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2a00c4188744059d9f5b970f3f713eea37f72ea7a2e7cf8fb8e4b275d09aa728
BLAKE2b-256 checksum
How to use checksums
8a21f8af7e98cba20cdd021692e924bb98af7551b47e19259aca54792a86d29a
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 10, 2026.

Transparency log

Security for emeans 0.1.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 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for emeans-0.1.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 10, 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

6 release files Full provenance

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