coid

Id codecs.


License
BSD-3-Clause
Install
pip install coid==0.1.1

Documentation

coid

https://travis-ci.org/bninja/coid.png https://coveralls.io/repos/bninja/coid/badge.png?branch=master

Simple codecs for ids. Can be useful when you represent ids differently between domains.

Get it:

$ pip install coid

use it:

import uuid
import coid

id = uuid.uuid4()

id_codec = coid.Id(prefix='BLA-', encoding='base58')
assert id == id_codec.decode(id_codec.encode(id))