MCPcopy
hub / github.com/mitmproxy/mitmproxy / operating_system

Function operating_system

release/build.py:98–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def operating_system() -> str:
99 match platform.system():
100 case "Windows":
101 system = "windows"
102 case "Linux":
103 system = "linux"
104 case "Darwin":
105 system = "macos"
106 case other:
107 warnings.warn("Unexpected system.")
108 system = other
109 match platform.machine():
110 case "AMD64" | "x86_64":
111 machine = "x86_64"
112 case "arm64":
113 machine = "arm64"
114 case other:
115 warnings.warn("Unexpected platform.")
116 machine = other
117 return f"{system}-{machine}"
118
119
120def _pyinstaller(specfile: str) -> None:

Callers 2

standalone_binariesFunction · 0.85
macos_appFunction · 0.85

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…