Registry / serialization / based58

based58

JSON →
library0.1.1pypypi✓ verified 85d ago

A fast Python library for Base58 and Base58Check encoding/decoding. Version 0.1.1 supports Python >=3.7. Development is active with releases on a monthly cadence.

pip install based58
INSTALL
IMPORT
SIG · BASED58
B
based58
serializationpythonv0.1.1
Install
1.6s avg
Import
—
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.4MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 22MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

b58encode
✓ from based58 import b58encode
✗ from based58 import Base58
b58decode
✓ from based58 import b58decode
✗ from based58 import Base58
Alphabet
✓ from based58 import Alphabet
✗ from based58 import Base58

Encode and decode bytes using Base58.

from based58 import base58_encode, base58_decode encoded = base58_encode(b'hello world') print(encoded) # b'STV9KUJUjQJRyv7' decoded = base58_decode(encoded) print(decoded) # b'hello world'
Debug
Known issues
gotchaDo not confuse with the 'base58' library. Both provide 'base58_encode'/'base58_decode' but are entirely different packages. Check your requirements file.
fix
Use 'pip install based58' and import from 'based58'.
affects: all
deprecatedAs of version 0.1.1, the general 'encode'/'decode' functions are not provided; only bytes-to-bytes functions. Do not expect string-in/string-out behavior.
fix
Ensure input is bytes, not str. Use .encode() or .decode() as needed.
affects: >=0.1.0
gotchaThe library expects input to be bytes. Passing a string will raise AttributeError or TypeError depending on Python version.
fix
Convert strings to bytes: base58_encode('text'.encode()).
affects: all
Upgrade
Version history
0.1.1latest on PyPI · released Apr 24, 2022
Audit
Dependencies
base58optionalA commonly confused library with similar name and API. based58 is not a dependency of base58 or vice versa.
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
based58 — pip install based58 · libregistry