MCPcopy
hub / github.com/mitmproxy/mitmproxy / archive

Function archive

release/build.py:77–81  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

75
76
77def archive(path: Path) -> tarfile.TarFile | ZipFile2:
78 if platform.system() == "Windows":
79 return ZipFile2(path.with_name(f"{path.name}.zip"), "w")
80 else:
81 return tarfile.open(path.with_name(f"{path.name}.tar.gz"), "w:gz")
82
83
84def version() -> str:

Callers 2

standalone_binariesFunction · 0.85
macos_appFunction · 0.85

Calls 2

ZipFile2Class · 0.85
openMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…