module documentation

Undocumented

Class Tag Undocumented
Function dump obj: Python object to serialize fp: file-like object capable of .write(bytes)
Function dumps Undocumented
Function dumps_array Undocumented
Function dumps_bool Undocumented
Function dumps_dict Undocumented
Function dumps_float Undocumented
Function dumps_int return bytes representing int val in CBOR
Function dumps_string Undocumented
Function dumps_tag Undocumented
Function load Parse and return object from fp, a file-like object supporting .read(n)
Function loads Parse CBOR bytes and return Python objects.
Function loads_bytes Undocumented
Function tagify Undocumented
Constant CBOR_7 Undocumented
Constant CBOR_ARRAY Undocumented
Constant CBOR_BREAK Undocumented
Constant CBOR_BYTES Undocumented
Constant CBOR_FALSE Undocumented
Constant CBOR_FLOAT16 Undocumented
Constant CBOR_FLOAT32 Undocumented
Constant CBOR_FLOAT64 Undocumented
Constant CBOR_INFO_BITS Undocumented
Constant CBOR_MAP Undocumented
Constant CBOR_NEGINT Undocumented
Constant CBOR_NULL Undocumented
Constant CBOR_TAG Undocumented
Constant CBOR_TAG_BASE16 Undocumented
Constant CBOR_TAG_BIGFLOAT Undocumented
Constant CBOR_TAG_BIGNUM Undocumented
Constant CBOR_TAG_CBOR Undocumented
Constant CBOR_TAG_CBOR_FILEHEADER Undocumented
Constant CBOR_TAG_DATE_ARRAY Undocumented
Constant CBOR_TAG_DATE_STRING Undocumented
Constant CBOR_TAG_DECIMAL Undocumented
Constant CBOR_TAG_MIME Undocumented
Constant CBOR_TAG_NEGBIGNUM Undocumented
Constant CBOR_TAG_REGEX Undocumented
Constant CBOR_TAG_URI Undocumented
Constant CBOR_TEXT Undocumented
Constant CBOR_TRUE Undocumented
Constant CBOR_TYPE_MASK Undocumented
Constant CBOR_UINT Undocumented
Constant CBOR_UINT16_FOLLOWS Undocumented
Constant CBOR_UINT32_FOLLOWS Undocumented
Constant CBOR_UINT64_FOLLOWS Undocumented
Constant CBOR_UINT8_FOLLOWS Undocumented
Constant CBOR_UNDEFINED Undocumented
Constant CBOR_VAR_FOLLOWS Undocumented
Variable CBOR_TAG_BASE64 Undocumented
Variable CBOR_TAG_BASE64URL Undocumented
Function _bytes_to_biguint Undocumented
Function _dumps_bignum_to_bytearray Undocumented
Function _encode_type_num For some CBOR primary type [0..7] and an auxiliary unsigned number, return CBOR encoded bytes
Function _is_intish Undocumented
Function _is_stringish Undocumented
Function _is_unicode Undocumented
Function _loads return (object, bytes read)
Function _loads_array Undocumented
Function _loads_map Undocumented
Function _loads_tb Undocumented
Function _loads_var_array Undocumented
Function _loads_var_map Undocumented
Function _read_byte Undocumented
Function _tag_aux Undocumented
Constant _CBOR_TAG_BIGNUM_BYTES Undocumented
Constant _CBOR_TAG_NEGBIGNUM_BYTES Undocumented
Constant _IS_PY3 Undocumented
Constant _MAX_DEPTH Undocumented
def dump(obj, fp, sort_keys=False):

obj: Python object to serialize fp: file-like object capable of .write(bytes)

def dumps(ob, sort_keys=False):

Undocumented

def dumps_array(arr, sort_keys=False):

Undocumented

def dumps_bool(b):

Undocumented

def dumps_dict(d, sort_keys=False):

Undocumented

def dumps_float(val):

Undocumented

def dumps_int(val):

return bytes representing int val in CBOR

def dumps_string(val, is_text=None, is_bytes=None):

Undocumented

def dumps_tag(t, sort_keys=False):

Undocumented

def load(fp):

Parse and return object from fp, a file-like object supporting .read(n)

def loads(data):

Parse CBOR bytes and return Python objects.

def loads_bytes(fp, aux, btag=CBOR_BYTES):

Undocumented

def tagify(ob, aux):

Undocumented

CBOR_7: int =

Undocumented

Value
224
CBOR_ARRAY: int =

Undocumented

Value
128
CBOR_BREAK: int =

Undocumented

Value
255
CBOR_BYTES: int =

Undocumented

Value
64
CBOR_FALSE =

Undocumented

Value
CBOR_7|20
CBOR_FLOAT16 =

Undocumented

Value
CBOR_7|25
CBOR_FLOAT32 =

Undocumented

Value
CBOR_7|26
CBOR_FLOAT64 =

Undocumented

Value
CBOR_7|27
CBOR_INFO_BITS: int =

Undocumented

Value
31
CBOR_MAP: int =

Undocumented

Value
160
CBOR_NEGINT: int =

Undocumented

Value
32
CBOR_NULL =

Undocumented

Value
CBOR_7|22
CBOR_TAG: int =

Undocumented

Value
192
CBOR_TAG_BASE16: int =

Undocumented

Value
23
CBOR_TAG_BIGFLOAT: int =

Undocumented

Value
5
CBOR_TAG_BIGNUM: int =

Undocumented

Value
2
CBOR_TAG_CBOR: int =

Undocumented

Value
24
CBOR_TAG_CBOR_FILEHEADER: int =

Undocumented

Value
55799
CBOR_TAG_DATE_ARRAY: int =

Undocumented

Value
1
CBOR_TAG_DATE_STRING: int =

Undocumented

Value
0
CBOR_TAG_DECIMAL: int =

Undocumented

Value
4
CBOR_TAG_MIME: int =

Undocumented

Value
36
CBOR_TAG_NEGBIGNUM: int =

Undocumented

Value
3
CBOR_TAG_REGEX: int =

Undocumented

Value
35
CBOR_TAG_URI: int =

Undocumented

Value
32
CBOR_TEXT: int =

Undocumented

Value
96
CBOR_TRUE =

Undocumented

Value
CBOR_7|21
CBOR_TYPE_MASK: int =

Undocumented

Value
224
CBOR_UINT: int =

Undocumented

Value
0
CBOR_UINT16_FOLLOWS: int =

Undocumented

Value
25
CBOR_UINT32_FOLLOWS: int =

Undocumented

Value
26
CBOR_UINT64_FOLLOWS: int =

Undocumented

Value
27
CBOR_UINT8_FOLLOWS: int =

Undocumented

Value
24
CBOR_UNDEFINED =

Undocumented

Value
CBOR_7|23
CBOR_VAR_FOLLOWS: int =

Undocumented

Value
31
CBOR_TAG_BASE64: int =

Undocumented

CBOR_TAG_BASE64URL: int =

Undocumented

def _bytes_to_biguint(bs):

Undocumented

def _dumps_bignum_to_bytearray(val):

Undocumented

def _encode_type_num(cbor_type, val):

For some CBOR primary type [0..7] and an auxiliary unsigned number, return CBOR encoded bytes

def _is_intish(x):

Undocumented

def _is_stringish(x):

Undocumented

def _is_unicode(val):

Undocumented

def _loads(fp, limit=None, depth=0, returntags=False):

return (object, bytes read)

def _loads_array(fp, limit, depth, returntags, aux, bytes_read):

Undocumented

def _loads_map(fp, limit, depth, returntags, aux, bytes_read):

Undocumented

def _loads_tb(fp, tb, limit=None, depth=0, returntags=False):

Undocumented

def _loads_var_array(fp, limit, depth, returntags, bytes_read):

Undocumented

def _loads_var_map(fp, limit, depth, returntags, bytes_read):

Undocumented

def _read_byte(fp):

Undocumented

def _tag_aux(fp, tb):

Undocumented

_CBOR_TAG_BIGNUM_BYTES =

Undocumented

Value
struct.pack('B', (CBOR_TAG|CBOR_TAG_BIGNUM))
_CBOR_TAG_NEGBIGNUM_BYTES =

Undocumented

Value
struct.pack('B', (CBOR_TAG|CBOR_TAG_NEGBIGNUM))
_IS_PY3 =

Undocumented

Value
(sys.version_info[0] >= 3)
_MAX_DEPTH: int =

Undocumented

Value
100