A fast Python library for Base58 and Base58Check
Project description
based58
A fast base-58 Python library
based58
is a fast Python library for
Base58
encoding and decoding. It includes support for Base58Check and configurable alphabets.
It is significantly faster than the pure-Python base58 library, as it calls the Rust bs58 library under the hood.
The API mimics that of the base58
library, with the exception that string inputs are not
supported, only bytes.
Installation
pip install based58
Note: requires Python >= 3.7.
Usage
>>> import based58
>>> data = [1, 2, 3]
>>> based58.b58encode(b'hello world')
b'StV1DL6CwTryKyV'
>>> based58.b58decode(b'StV1DL6CwTryKyV')
b'hello world'
>>> based58.b58encode_check(b'hello world')
b'3vQB7B6MrGQZaxCuFg4oh'
>>> based58.b58decode_check(b'3vQB7B6MrGQZaxCuFg4oh')
b'hello world'
>>> based58.b58encode(b'hello world', alphabet=based58.Alphabet.RIPPLE)
b'StVrDLaUATiyKyV'
>>> based58.b58decode(b'StVrDLaUATiyKyV', alphabet=based58.Alphabet.RIPPLE)
b'hello world'
Development
Setup
- Install poetry
- Install dev dependencies:
poetry install
- Activate the poetry shell:
poetry shell
Testing
- Run
maturin develop
to compile the Rust code. - Run
make fmt
,make lint
, andmake test
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file based58-0.1.1.tar.gz
.
File metadata
- Download URL: based58-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80804b346b34196c89dc7a3dc89b6021f910f4cd75aac41d433ca1880b1672dc |
|
MD5 | ab466235c3af78fd226357ab9d749738 |
|
BLAKE2b-256 | 00a9dbf5ff314d7b7d3b3246e01f2f6cbb880b62c7a958a8520237b982db191a |
File details
Details for the file based58-0.1.1-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 141.5 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab85804a401a7b5a7141fbb14ef5b5f7d85288357d1d3f0085d47e616cef8f5a |
|
MD5 | 1d24b4ab43934e9774ca598716f4804e |
|
BLAKE2b-256 | 7b1335a9ee917ef05d734b0aa75400cfff44325594894d8d928d36b4dc0030d1 |
File details
Details for the file based58-0.1.1-cp37-abi3-win32.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-win32.whl
- Upload date:
- Size: 135.5 kB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8dece575de525c1ad889d9ab239defb7a6ceffc48f044fe6e14a408fb05bef4 |
|
MD5 | 1089d232fdfaadf3015160843fe1b0af |
|
BLAKE2b-256 | 9e7c5c7c9e6d1ddd083a4cf25c4182fbaacfa7371ac9e82479c98aa29830bb8b |
File details
Details for the file based58-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7f17b67bf0c209da859a6b833504aa3b19dbf423cbd2369aa17e89299dc972 |
|
MD5 | 0beac15b49451449728f76038185c965 |
|
BLAKE2b-256 | 1879ed5278c4ef0dd8ab7695417c132329064ae6f8963f12521cb0b1b6c8e71f |
File details
Details for the file based58-0.1.1-cp37-abi3-musllinux_1_2_i686.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba18f6c869fade1d1551fe398a376440771d6ce288c54cba71b7090cf08af02 |
|
MD5 | 44c71ca3d3f05d4ed67ebd0b3716d255 |
|
BLAKE2b-256 | 58c1603af0cf18e7c72f31089cced681b599caa2a011d0ca16cfe2a676e33ceb |
File details
Details for the file based58-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621269732454875510230b85053f462dffe7d7babecc8c553fdb488fd15810ff |
|
MD5 | 0c86b3b30092627d84953bfc92d5edf9 |
|
BLAKE2b-256 | f7e8774840132f2c7ded2f377fb22c1c6ddaa2041c4ea4d42d1547bc6758af89 |
File details
Details for the file based58-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c03c7f0023981c7d52fc7aad23ed1f3342819358b9b11898d693c9ef4577305 |
|
MD5 | 801c858f5010bead86cbbbf62076310b |
|
BLAKE2b-256 | 1b792b77d260e67b7135b050279a9b74fe4d45c4edf63a08cdff2d334fd7f4b6 |
File details
Details for the file based58-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0506435e98836cc16e095e0d6dc428810e0acfb44bc2f3ac3e23e051a69c0e3e |
|
MD5 | 3238993224f5420b97616696d721bc69 |
|
BLAKE2b-256 | cbbc9bdba9ef4b2185d12c9ba4028168081ce2359d399087f51415db11073a44 |
File details
Details for the file based58-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9db744be79c8087eebedbffced00c608b3ed780668ab3c59f1d16e72c84947 |
|
MD5 | adce4dfe38192336a405416bf043ee68 |
|
BLAKE2b-256 | 43adec48ad774b33ff521cec8355e7fb782f3f11761cc4a7342c054faf5fd747 |
File details
Details for the file based58-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f3c40b358b0c6fc6fc614c43bb11ef851b6d04e519ac1eda2833420cb43799 |
|
MD5 | 63b2fcca2eb12e1e98c00de2975cc685 |
|
BLAKE2b-256 | 1f7e748debfbe5146394893f6f60a77b5fe343a093850340d312e4ddac03190f |
File details
Details for the file based58-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fb17f0aaaad0381c8b676623c870c1a56aca039e2a7c8416e65904d80a415f7 |
|
MD5 | 20936f709b50e23472cec7accd3b4fb5 |
|
BLAKE2b-256 | 0170ed49e0a541fae6de7ef0858b08fc95ab7223c3f39aa5e30e03bba498f355 |
File details
Details for the file based58-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852c37206374a62c5d3ef7f6777746e2ad9106beec4551539e9538633385e613 |
|
MD5 | 2ec708e85f9772f92fa87ad2545775e3 |
|
BLAKE2b-256 | d7bcd6bd738adf98bf4102dfeb33aa7ac58ede12ea924fea89a9751a8ec9c15b |
File details
Details for the file based58-0.1.1-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14b01d91ac250300ca7f634e5bf70fb2b1b9aaa90cc14357943c7da525a35aff |
|
MD5 | b3bfe4584877794bbdcabddb287c9ca7 |
|
BLAKE2b-256 | 6a30216be65c673259d6227c34690ce35e81858177bc6ad3cffab6699c93e115 |
File details
Details for the file based58-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8937e97fa8690164fd11a7c642f6d02df58facd2669ae7355e379ab77c48c924 |
|
MD5 | c9b002f3477605747e00312ee2964ac2 |
|
BLAKE2b-256 | a68573ef6c410a5525b0a95c84a7e5e0902ce1d690a5f86ef36b0224d333e7b6 |
File details
Details for the file based58-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 492.7 kB
- Tags: CPython 3.7+, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8448a71678bd1edc0a464033695686461ab9d6d0bc3282cb29b94f883583572 |
|
MD5 | 9cf073b7253ddbd9ea66454451489ae1 |
|
BLAKE2b-256 | 7aa2e1436e5ae5a9e117d248017bef101ee99c47549af6ad15bc58b018174202 |
File details
Details for the file based58-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: based58-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl
- Upload date:
- Size: 251.8 kB
- Tags: CPython 3.7+, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.12.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 745851792ce5fada615f05ec61d7f360d19c76950d1e86163b2293c63a5d43bc |
|
MD5 | deed9a070faf050ad9bea28c59e09b1c |
|
BLAKE2b-256 | 901d10b5d61e11f96cc2f038b06776a9761465b1d020bf0e95e60da23a3a3ba8 |