Skip to main content

speedupy-native

Prebuilt native hash functions for SpeeduPy: a5hash, MeowHash 0.5 and MuseAir BFast, as one Python extension with wheels for Linux (x86_64, aarch64), Windows (x64) and macOS (Intel, Apple Silicon). pip install speedupy brings it in; nothing is compiled on the user's machine.

import speedupy_native as native

native.a5hash_128_64(b"abc")          # lower 64 bits of a5hash-128, seed 0
native.museair_bfast_64(b"abc")       # MuseAir BFast, 64-bit, seed 0
native.meowhash_32(b"abc")            # MeowHash 0.5, lower 32 bits, default seed
native.HAS_MEOWHASH                   # False on arm64 and on x86_64 without AES-NI
native.PLATFORM                       # "linux-x86_64", "macos-aarch64", ...

The functions take bytes and return the integers the original ctypes wrappers of SpeeduPy returned, computed from the same sources at the same commits (NOTICE). tests/test_vectors.py holds reference values produced from those original shared libraries; every wheel must reproduce them on its own platform before it is released.

MeowHash exists for x86_64 with AES-NI only; its official implementation has no ARM port. On other platforms HAS_MEOWHASH is false and meowhash_32 raises RuntimeError; the other hashes work everywhere.

Design and rationale: docs/native-hashes.md in the SpeeduPy repository (decision D3 of the retrofit).

Layout

Cargo.toml, build.rs, src/lib.rs   the extension (Rust, PyO3; build.rs compiles the C/C++ wrappers)
crates/museair/Cargo.toml          bridge manifest that builds vendor/museair as a Rust library
python/speedupy_native/            the Python package
vendor/{a5hash,meow_hash,museair}  git submodules, pinned (see NOTICE)
tests/test_vectors.py              reference values; generated by tools/gen_vectors.py
.github/workflows/release.yml      wheels for every platform, tests, release to PyPI on a tag

Developing

Needs Rust (rustup), a C and C++ compiler, Python 3.10 or newer and maturin (uv tool install maturin). No Docker.

git clone --recurse-submodules https://github.com/dew-uff/speedupy-native
cd speedupy-native
uv venv && source .venv/bin/activate
maturin develop --release
uv pip install pytest && pytest -q

maturin build --release writes the wheel of this machine to target/wheels/.

The reference values are regenerated only when a vendored commit changes, from the original .so libraries built from that commit on Linux x86_64: python tools/gen_vectors.py <dir with liba5hash.so libmeow.so libmuseair.so> > tests/test_vectors.py. A change in the values is a new hash to SpeeduPy's users, not a bug fix: it is at least a minor version and is written in the release notes.

Releasing

Tags are SemVer without a v (0.1.0). A pushed tag builds every wheel, runs the tests on each platform, attests the artifacts and publishes to PyPI with Trusted Publishing: the PyPI project lists this repository, this workflow file and the pypi environment as its publisher, and no token is stored. SpeeduPy pins the exact version in its dependencies; bumping it there is a pull request of its own.

Metadata

Release files for speedupy-native 0.1.0

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

Source distribution (sdist)

Source distribution for speedupy-native 0.1.0
File Size Uploaded Provenance Actions
speedupy_native-0.1.0.tar.gz 57.3 kB Without provenance Details for speedupy_native-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for speedupy-native 0.1.0
File Actions
speedupy_native-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for speedupy_native-0.1.0-cp310-abi3-win_amd64.whl
speedupy_native-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for speedupy_native-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
speedupy_native-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for speedupy_native-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
speedupy_native-0.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for speedupy_native-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
speedupy_native-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for speedupy_native-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 978.1 kB

Release files / speedupy_native-0.1.0.tar.gz

Download URL speedupy_native-0.1.0.tar.gz
Size 57.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a3bbe10821f89d5b6f752fa28fb3db82284bac31284edccb626e0f72c822179a
BLAKE2b-256 checksum
How to use checksums
8abdf5beeacf6e4342ad40d863c96d438632de9725b9de9ecb90f4e709b671fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / speedupy_native-0.1.0-cp310-abi3-win_amd64.whl

Download URL speedupy_native-0.1.0-cp310-abi3-win_amd64.whl
Size 105.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ccb349058071cc96f7a871ff090fe525ba55d9f0ad1a3296ea28a9bc7bf947c8
BLAKE2b-256 checksum
How to use checksums
018356f5914da20933def4a1757c4d4ee5f14be9abf4e56d04958a483d433654
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / speedupy_native-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL speedupy_native-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 210.0 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e1532236acbe236d5bcfd41b9e299ee83f6d4c7dd54abde314d10c0fa978e579
BLAKE2b-256 checksum
How to use checksums
a8a637c7aeca761aa26ea5160e2e03853af5e5784a624c6c8eecb5694cf9afc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / speedupy_native-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL speedupy_native-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 208.6 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
751a7c3795908666e5479a4cb5539207bad9fc54f67d41423d3855a90f593c6d
BLAKE2b-256 checksum
How to use checksums
53f20766c973a283302ef7282e3453fac3b34610c7db3f0e991aa3432db92090
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / speedupy_native-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL speedupy_native-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 193.0 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7e98a482049b9dc5c254aaf1fc367de64a845bcd376dc3a5ce7cd1cd8fdf1582
BLAKE2b-256 checksum
How to use checksums
2ed5946ba0158759abb6a714ab20c67c8d6a5812570d36ee99cab728041e6a68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / speedupy_native-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL speedupy_native-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 204.3 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f944ca4ade1bfafb116bba6b28708f23f8c12f5e6a12c03086328462f9074b8c
BLAKE2b-256 checksum
How to use checksums
f56ed2833797e7e3fdac12c88fb004b09645e95bdb2facff32e19bef483ff3a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for speedupy-native 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.0 This release

6 release files No 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