Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 342 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 342 Bytes

Installation

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, ...)