module documentation

Undocumented

Class CompleteDirs A ZipFile subclass that ensures that implied directories are always included in the namelist.
Class FastLookup ZipFile subclass to ensure implicit dirs exist and are resolved rapidly.
Class Path A pathlib-compatible interface for zip files.
Function _ancestry Given a path with elements separated by posixpath.sep, generate all elements of that path
Function _difference Return items in minuend not in subtrahend, retaining order with O(1) lookup.
Function _parents Given a path with elements separated by posixpath.sep, generate all parents of that path.
Function _pathlib_compat For path-like objects, convert to a filename for compatibility on Python 3.6.1 and earlier.
def _ancestry(path): (source)

Given a path with elements separated by posixpath.sep, generate all elements of that path >>> list(_ancestry('b/d')) ['b/d', 'b'] >>> list(_ancestry('/b/d/')) ['/b/d', '/b'] >>> list(_ancestry('b/d/f/')) ['b/d/f', 'b/d', 'b'] >>> list(_ancestry('b')) ['b'] >>> list(_ancestry('')) []

def _difference(minuend, subtrahend): (source)

Return items in minuend not in subtrahend, retaining order with O(1) lookup.

def _parents(path): (source)

Given a path with elements separated by posixpath.sep, generate all parents of that path. >>> list(_parents('b/d')) ['b'] >>> list(_parents('/b/d/')) ['/b'] >>> list(_parents('b/d/f/')) ['b/d', 'b'] >>> list(_parents('b')) [] >>> list(_parents('')) []

def _pathlib_compat(path): (source)

For path-like objects, convert to a filename for compatibility on Python 3.6.1 and earlier.