Generates tarballs for Git trees.
Class ChunkedBytesIO Turn a list of bytestrings into a file-like object.
Function tar_stream Generate a tar stream for the contents of a Git tree.
Function _walk_tree Recursively walk a dulwich Tree, yielding tuples of (absolute path, TreeEntry) along the way.
def tar_stream(store, tree, mtime, prefix='', format=''):

Generate a tar stream for the contents of a Git tree.

Returns a generator that lazily assembles a .tar.gz archive, yielding it in pieces (bytestrings). To obtain the complete .tar.gz binary file, simply concatenate these chunks.

ParametersstoreObject store to retrieve objects from
treeTree object for the tree root
mtimeUNIX timestamp that is assigned as the modification time for all files, and the gzip header modification time if format='gz'
formatOptional compression format for tarball
ReturnsBytestrings
def _walk_tree(store, tree, root=''):
Recursively walk a dulwich Tree, yielding tuples of (absolute path, TreeEntry) along the way.
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.