pip install bp
import bp
bp.encode(obj, encoding="utf-8", errors="strict") -> bytes
bp.decode(buf, encoding="utf-8", errors="strict") -> obj
bp.pack(sequence, encoding="utf-8", errors="strict") -> bytes
bp.unpack(buf, offset=0, num=0, encoding="utf-8", errors="strict") -> (used_bytes, obj, ...)