MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / __init__

Method __init__

eval_code/recons/models/moge/utils/webzipfile.py:24–28  ·  view source on GitHub ↗

Open the ZIP file with mode read 'r', write 'w', exclusive create 'x', or append 'a'.

(self, url: str, session: Optional[Session] = None, headers: Optional[Dict[str, str]] = None)

Source from the content-addressed store, hash-verified

22class WebZipFile(ZipFile):
23 "Lock-free version of ZipFile that reads from a WebFile, allowing for concurrent reads."
24 def __init__(self, url: str, session: Optional[Session] = None, headers: Optional[Dict[str, str]] = None):
25 """Open the ZIP file with mode read 'r', write 'w', exclusive create 'x',
26 or append 'a'."""
27 webf = WebFile(url, session=session, headers=headers)
28 super().__init__(webf, mode='r')
29
30 def open(self, name, mode="r", pwd=None, *, force_zip64=False):
31 """Return file-like object for 'name'.

Callers 1

__init__Method · 0.45

Calls 1

WebFileClass · 0.85

Tested by

no test coverage detected