hotkernels
Faster NumPy on Apple Silicon, with one line and no other change to your code.
import hotkernels
hotkernels.install()
install() points NumPy at hand-written ARM64 kernels for the calls where NumPy is slowest. Every kernel is checked against NumPy's own output, including NaN, infinities, signed zeros and ties, and is memory-safe by test. A call no kernel handles goes to NumPy exactly as it was written.
Install
pip install hotkernels
Wheels are for macOS on Apple Silicon, Python 3.11 to 3.14, with NumPy 2.
What gets faster
np.argmax, np.argmin, np.clip, x[mask], x[mask] = v, np.nonzero, np.cumsum, x.astype(np.float32) from uint8, np.sum on uint8, np.count_nonzero, np.histogram, np.bincount and np.isin, for the element types each kernel covers. At a million elements, from Python, x[mask] on float32 is about 31x faster and np.histogram about 9x.
Using it
import numpy as np
import hotkernels
hotkernels.install() # NumPy now uses the kernels, in the whole process
x = np.random.standard_normal(1_000_000)
x[x > 0] # served by a kernel
print(hotkernels.report()) # what is installed, and how often each kernel ran
hotkernels.uninstall() # NumPy is exactly as it was
hotkernels.install(inexact=True)also installsnp.cumsumonfloat32andfloat64, which are within a declared tolerance of NumPy rather than bit-identical.with hotkernels.enabled():installs for the duration of a block.
Documentation, the full results and how the kernels are made: sofeikov.github.io/hotkernels and github.com/sofeikov/hotkernels.
Metadata
Release files for hotkernels 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| hotkernels-0.1.0-cp314-cp314-macosx_11_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 11.0+ ARM64 | Details for hotkernels-0.1.0-cp314-cp314-macosx_11_0_arm64.whl |
| hotkernels-0.1.0-cp313-cp313-macosx_11_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 11.0+ ARM64 | Details for hotkernels-0.1.0-cp313-cp313-macosx_11_0_arm64.whl |
| hotkernels-0.1.0-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details for hotkernels-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
| hotkernels-0.1.0-cp311-cp311-macosx_11_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 11.0+ ARM64 | Details for hotkernels-0.1.0-cp311-cp311-macosx_11_0_arm64.whl |
Total release size: 170.0 kB
Release files / hotkernels-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | hotkernels-0.1.0-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 42.5 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cf1eed674a0a7a54a02ace8e9cc4fee6b68f65af9a30d5be3e235f15e5788614
|
|
BLAKE2b-256 checksum How to use checksums |
01b4455fde09d3e5aaeddd46709cf57ed63cb1c5def7a146250ac1fbb3c65428
|
| 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 17, 2026.
Transparency logRelease files / hotkernels-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | hotkernels-0.1.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 42.5 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
537995562e99a4359ebf47cc764468421fae2bc99d80f5e6f54c69bff7c881e6
|
|
BLAKE2b-256 checksum How to use checksums |
65a17c9b54712d4d6b9ffe191c7cd6923d0a8234758874bf4aff71a48dd2ffad
|
| 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 17, 2026.
Transparency logRelease files / hotkernels-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | hotkernels-0.1.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 42.5 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0d3cbcd4db1655c8a2bd9805011fb963b92f10798f2c68406ed0f70e6fa0a8e9
|
|
BLAKE2b-256 checksum How to use checksums |
d7fa23eaff7d0c74d9eeeaf13441778e9d54de593fd1716059e5b69d0cc51fd9
|
| 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 17, 2026.
Transparency logRelease files / hotkernels-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | hotkernels-0.1.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 42.5 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ec3b0fe34c05083a612996739a59c19880a19b4468bc8afd23438a39c437b056
|
|
BLAKE2b-256 checksum How to use checksums |
5cba4e69ce19cbb0bed801aae859ad00a7cbdfeff7c920cc3c07d9de6e684eb3
|
| 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 17, 2026.
Transparency logSecurity for hotkernels 0.1.0
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 4 files in this release have been uploaded with provenance metadata.
Attestation for hotkernels-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
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 17, 2026.
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.