dulwich.bundle module

Bundle format support.

class dulwich.bundle.Bundle

Bases: object

capabilities: Dict[str, str] = {}
pack_data: Union[dulwich.pack.PackData, Sequence[bytes]] = []
prerequisites: List[Tuple[bytes, str]] = []
references: Dict[str, bytes] = {}
version: Optional[int] = None
dulwich.bundle.read_bundle(f)

Read a bundle file.

dulwich.bundle.write_bundle(f, bundle)