File: __init__.py

package info (click to toggle)
python-cbor 1.0.0-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188 kB
  • sloc: ansic: 1,347; python: 726; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!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__',
]