Package list python-cbor / 38639a1f-9d05-42c6-823d-d872de85aabd/main cbor / __init__.py
38639a1f-9d05-42c6-823d-d872de85aabd/main

Tree @38639a1f-9d05-42c6-823d-d872de85aabd/main (Download .tar.gz)

__init__.py @38639a1f-9d05-42c6-823d-d872de85aabd/mainraw · history · blame

#!python

try:
    # try C library _cbor.so
    from ._cbor import loads, dumps, load, dump
except:
    # fall back to 100% python implementation
    from .cbor import loads, dumps, load, dump

from .cbor import Tag
from .tagmap import TagMapper, ClassTag, UnknownTagException
from .VERSION import __doc__ as __version__

__all__ = [
    'loads', 'dumps', 'load', 'dump',
    'Tag',
    'TagMapper', 'ClassTag', 'UnknownTagException',
    '__version__',
]