dag-cbor
latest

Contents

  • Getting Started
  • Encoding
  • Decoding
  • Random DAG-CBOR Data

API Documentation

  • dag_cbor
  • dag_cbor.decoding
  • dag_cbor.decoding.err
  • dag_cbor.encoding
  • dag_cbor.encoding.err
  • dag_cbor.ipld
  • dag_cbor.random
dag-cbor
  • dag-cbor: A Python implementation of the DAG-CBOR codec
  • Edit on GitHub

dag-cbor: A Python implementation of the DAG-CBOR codec

This is a fully compliant Python implementation of the DAG-CBOR codec, a subset of the Concise Binary Object Representation (CBOR) supporting the IPLD Data Model and enforcing a unique (strict) encoded representation of items.

GitHub repo: https://github.com/hashberg-io/dag-cbor

Contents

  • Getting Started
    • Installation
    • Basic Usage
    • The DAG-CBOR codec
    • Multiformats Config
  • Encoding
  • Decoding
  • Random DAG-CBOR Data
    • Generating random values
    • Random generation options

API Documentation

  • dag_cbor
    • dag_cbor.__all__
  • dag_cbor.decoding
    • DecodeCallback
    • decode
    • dag_cbor.decoding.__all__
  • dag_cbor.decoding.err
    • CBORDecodingError
    • DAGCBORDecodingError
  • dag_cbor.encoding
    • canonical_order_dict
    • check_key_compliance
    • encode
    • dag_cbor.encoding.__all__
  • dag_cbor.encoding.err
    • CBOREncodingError
    • CBORError
    • DAGCBOREncodingError
    • DAGCBORError
  • dag_cbor.ipld
    • IPLDKind
    • IPLDObjPath
    • IPLDObjPathSegment
    • IPLDScalarKind
  • dag_cbor.random
    • default_options
    • get_options
    • options
    • rand_bool
    • rand_bool_none
    • rand_bytes
    • rand_cid
    • rand_data
    • rand_data_cid
    • rand_dict
    • rand_float
    • rand_int
    • rand_list
    • rand_str
    • reset_options
    • set_options

Indices and tables

  • Index

  • Module Index

  • Search Page

Next

© Copyright 2023, Hashberg. Revision da4f70b8.

Built with Sphinx using a theme provided by Read the Docs.