python-py-multibase

Multibase implementation for Python

py-multibase ------------ .. image:: <a href="https://img.shields.io/pypi/v/py-multibase.svg">https://img.shields.io/pypi/v/py-multibase.svg</a> :target: <a href="https://pypi.python.org/pypi/py-multibase">https://pypi.python.org/pypi/py-multibase</a> .. image:: <a href="https://img.shields.io/travis/multiformats/py-multibase.svg?branch=master">https://img.shields.io/travis/multiformats/py-multibase.svg?branch=master</a> :target: <a href="https://travis-ci.org/multiformats/py-multibase?branch=master">https://travis-ci.org/multiformats/py-multibase?branch=master</a> .. image:: <a href="https://codecov.io/gh/multiformats/py-multibase/branch/master/graph/badge.svg">https://codecov.io/gh/multiformats/py-multibase/branch/master/graph/badge.svg</a> :target: <a href="https://codecov.io/gh/multiformats/py-multibase">https://codecov.io/gh/multiformats/py-multibase</a> .. image:: <a href="https://readthedocs.org/projects/py-multibase/badge/?version=stable">https://readthedocs.org/projects/py-multibase/badge/?version=stable</a> :target: <a href="https://py-multibase.readthedocs.io/en/stable/?badge=stable">https://py-multibase.readthedocs.io/en/stable/?badge=stable</a> :alt: Documentation Status `Multibase <<a href="https://github.com/multiformats/multibase>">https://github.com/multiformats/multibase></a> `_ implementation for Python Multibase is a protocol for distinguishing base encodings and other simple string encodings, and for ensuring full compatibility with program interfaces. It answers the question: Given data d encoded into string s, how can I tell what base d is encoded with? Base encodings exist because transports have restrictions, use special in-band sequences, or must be human-friendly. When systems chose a base to use, it is not always clear which base to use, as there are many tradeoffs in the decision. Multibase is here to save programs and programmers from worrying about which encoding is best. It solves the biggest problem: a program can use multibase to take input or produce output in whichever base is desired. The important part is that the value is self-describing, letting other programs elsewhere know what encoding it is using. * Free software: MIT license * Documentation: <a href="https://py-multibase.readthedocs.io">https://py-multibase.readthedocs.io</a> . * Python versions: 3.5, 3.6 Installation ============ .. code-block:: shell $ pip install py-multibase Sample Usage ============ .. code-block:: python >>> # encoding a buffer >>> from multibase import encode, decode >>> encode('base58btc', 'hello world') b'zStV1DL6CwTryKyV' >>> encode('base64', 'hello world') b'mGhlbGxvIHdvcmxk' >>> # decoding a multibase >>> decode('mGhlbGxvIHdvcmxk') b'hello world' >>> decode(b'zStV1DL6CwTryKyV') b'hello world' >>> decode(encode('base2', b'hello world')) b'hello world' Supported codecs ================ * base2 * base8 * base10 * base16 * base16 * base16 * base32hex * base32 * base32z * base58flickr * base58btc * base64 * base64url

There is no official package available for openSUSE Leap 15.6

Distributions

openSUSE Tumbleweed

openSUSE Leap 15.5