Skip to main content

Quick Base58 encoding/decoding.

Project description

Quick Base58 (qbase58)

A quick base58 encoder/decoder implementation written in C, with Python bindings.

Install

pip install qbase58

Usage

import qbase58

string = b"Hello, World!"

encoded = qbase58.encode(string)
print(f"Encoded: {encoded}")

decoded = qbase58.decode(encoded)
print(f"Decoded: {decoded}")

Benchmark

Comparing with the two other Python base58 libraries:

--- Data Set: SMALL (size=100 bytes) ---
base58   => avg: 45.1845 ms (std: 2.7698 ms) over 1000 iterations
based58  => avg: 12.7324 ms (std: 0.1445 ms) over 1000 iterations
qbase58  => avg: 6.5189 ms (std: 0.0414 ms) over 1000 iterations

--- Data Set: MEDIUM (size=1000 bytes) ---
base58   => avg: 763.2404 ms (std: 3.9402 ms) over 500 iterations
based58  => avg: 646.2393 ms (std: 2.4316 ms) over 500 iterations
qbase58  => avg: 320.7714 ms (std: 1.1277 ms) over 500 iterations

--- Data Set: LARGE (size=5000 bytes) ---
base58   => avg: 319.6193 ms (std: 1.5274 ms) over 10 iterations
based58  => avg: 320.4021 ms (std: 1.2545 ms) over 10 iterations
qbase58  => avg: 162.0134 ms (std: 0.7824 ms) over 10 iterations

See scripts/benchmark.py for benchmarking details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qbase58-1.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

qbase58-1.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

qbase58-1.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.5 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

qbase58-1.0.1-cp313-cp313-musllinux_1_2_x86_64.whl (33.4 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

qbase58-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

qbase58-1.0.1-cp312-cp312-musllinux_1_2_x86_64.whl (33.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

qbase58-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

qbase58-1.0.1-cp311-cp311-musllinux_1_2_x86_64.whl (33.0 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

qbase58-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

qbase58-1.0.1-cp310-cp310-musllinux_1_2_x86_64.whl (32.9 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

qbase58-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

qbase58-1.0.1-cp39-cp39-musllinux_1_2_x86_64.whl (32.8 kB view details)

Uploaded CPython 3.9musllinux: musl 1.2+ x86-64

qbase58-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

qbase58-1.0.1-cp38-cp38-musllinux_1_2_x86_64.whl (32.7 kB view details)

Uploaded CPython 3.8musllinux: musl 1.2+ x86-64

qbase58-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.2 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file qbase58-1.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 586400a7b2faec1b82dd1513f2ebc5878ab68bdc28c064b5d8f381bdc7a1062c
MD5 2de01b67fc44489c6ca1d784a7be973e
BLAKE2b-256 d023e8c628e1f614b6f212a624613fdc730079df055f9471721daab13eabf3f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 421eb7bd099bf3fe850f112b5487fa3bbc27434dcbb385d86f69cad9df3050fd
MD5 a8f25663954fd79be4d30f191f1aafac
BLAKE2b-256 d3fc618f50fc50cdc34d57e046767f442aae1cea5471fc3e639a58cad4101012

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc0290baee9fe1f8c2f37ae2d41fdb0daefb110e8c4cc348e11595a50340e729
MD5 f7df404e8da14cecb15a9f35db5a41fc
BLAKE2b-256 be4958c0691e211bb670f9418a48006ddfe6871d799494a2c97e46d8d458f2e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1e1dfe74c1083a76735c1162c98b5099f6628973378d2a5d4c09e06198cc8e60
MD5 bcf88cb9674b4e996165e0a5686e5d3d
BLAKE2b-256 ddb49c475665176c554d4eae3b88d77a7e7dd569db996329c6a644b2595d08bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp313-cp313-musllinux_1_2_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 40bcd56bb92447907806d4a14f4039ef90eaf9eb0b2c8cc9631dae1899577cd5
MD5 b42a9854fa50c5fe6d0bd281b69ef117
BLAKE2b-256 2451d649d834e8820beb56c8641e3bb364703dbf59ebd0ed89998e431f281c01

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 68c1727b43ddecdb4a1e9d01f5ba48886d05568efced95ff924d22d507f9de9a
MD5 73155e872ee7ce41c606ddfc6649649e
BLAKE2b-256 8f19c447f2898c6e91212b4f4b9dbad58d4187472f5312fd0452016b86f78a0a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c70d0784a88d19f0d3b395522057ca7b63234531a8f24d375e057ccae0dfe8aa
MD5 0ed2f97f258016080d90b4894bec9245
BLAKE2b-256 6fde0f86ee048f54401fbb37c7dbb189d8b62d53da2cd1480c36be988fc9622e

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ac1e1790b8ab082e56d9e01508b84985c34e22fcbb0632b2cbd56c589da3295e
MD5 45c2b8425a88ea467e875b06ddb23432
BLAKE2b-256 54c1d2f1409031602849f9cfaf7bd763a78970fc9f018666974f6401aaf0d17b

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2935fb908a9350630cb287777e0849879682203543e82bdcc05d1b8633f81030
MD5 400e18681c691003dee3654550472a94
BLAKE2b-256 7415f04c727f14fcb78873baa30f21a84ab183fc2d0a9518a9406962fe7e32bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aaeac46b4cb387fd13f9750db83b573cf3fd84cce15f351858b54e995184e446
MD5 56dd5f049081d321ae2dba5ff6b35164
BLAKE2b-256 7c93a2380ba7cbe1d8c2be68df6280cf7c9ab793f5ec886ec36b98ff24bdc981

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63966a8ac98fa007de520b21157bb28490f8bd2af2b0efb89c1779b6a9ebf4e6
MD5 1a1efa91d3f08934af2cc4d4b292bdd9
BLAKE2b-256 a931ea694dab6907a2d0dc73d69d752a656f25230e78b804d62a808797b24303

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp39-cp39-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6d40f8d2843e5562d6f5eddef12f2a0d703be170c924fee4450e36d8e897e8d8
MD5 796d32cfc0baafe789c49f5eefb430b1
BLAKE2b-256 f493e5548a5a3c1b59cf10efa24fda12e444d1177d5e6cd2c69659dda8e2a710

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp39-cp39-musllinux_1_2_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 09ac91407bdaa26dbe82f3e434a25df90594fd0b3222ed9f6e2027f7216f8ba0
MD5 a73e7218feec77e8ee5edcbba755a23d
BLAKE2b-256 b2baaf75730becdecce794d731802fdfc28db15eb9ae5fb524c2db88113130ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp38-cp38-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp38-cp38-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1c3b0bb3dc123af9e041eb01dd7536b3548bec6a5c01fa412b2b379192f8a0fd
MD5 7d59fe99ad8c25c79deb23ac46d47e71
BLAKE2b-256 7ee4f1fff70371196792c3a5007ca9516e9cad2f41f5053a57ea03f6d4ac476e

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp38-cp38-musllinux_1_2_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qbase58-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for qbase58-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b153edad9bc1b44be031722565849d881335e4d7a6b4b60fb5f21146e3646d1e
MD5 65d97339f754a2a1cca22d75725f2690
BLAKE2b-256 71ebc04eb30722ffaa8d6a68efa5c8db7c351e63ec64323a84473c95a4d19c23

See more details on using hashes here.

Provenance

The following attestation bundles were made for qbase58-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on qvecs/qbase58

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page