axhash-python
Binding Python untuk engine AxHash, dibangun langsung di atas axhash-core menggunakan PyO3. Mudah digunakan untuk kebutuhan hash cepat di ekosistem Python.
Instalasi
Build wheel (butuh Rust dan maturin):
maturin build --release
# atau untuk pengembangan
maturin develop
Install wheel hasil build:
pip install target/wheels/axhash_python-*.whl
API Utama
axhash(data: bytes) -> int— Hash cepat tanpa seedaxhash_seeded(data: bytes, seed: int) -> int— Hash dengan seed customruntime_backend() -> str— Info backend yang dipakairuntime_has_aes() -> bool— Deteksi akselerasi AESHasher(seed: int = 0)— Streaming hash (update/incremental)
Contoh Penggunaan
import axhash_python as axhash
# Hash langsung
print(axhash.axhash(b"hello"))
print(axhash.axhash_seeded(b"hello", 0x1234))
# Streaming hash
h = axhash.Hasher(seed=0x1234)
h.update(b"data1")
h.update(b"data2")
print(h.digest())
# Info runtime
print(axhash.runtime_backend())
print(axhash.runtime_has_aes())
Lisensi
MIT. Bebas digunakan untuk open source maupun komersial.
Metadata
Release files for axhash-python 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| axhash_python-0.4.2.tar.gz | 25.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| axhash_python-0.4.2-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 219.8 kB
Release files / axhash_python-0.4.2.tar.gz
| Download URL | axhash_python-0.4.2.tar.gz |
|---|---|
| Size | 25.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9aeaeb7886f9637dfb3c2fe844fa0c3936fba2c4e68c58516e6854ef7f262e54
|
|
BLAKE2b-256 checksum How to use checksums |
5d0748a0221d36be1d07cadee648c84dace52fc2663e259c12577533f3ffcf37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|
Release files / axhash_python-0.4.2-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | axhash_python-0.4.2-cp39-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 194.5 kB |
| Tags | CPython 3.9 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8945465429f639cee625108904a75622f7887b61541f1da9bdd7d044f9d4d715
|
|
BLAKE2b-256 checksum How to use checksums |
df0bd93f845912a240bc2dd0e0e444c7adaa7dfaf529a6185716fbb0d7082535
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.13.1
|