Buckets:

download
raw
339 Bytes
import subprocess
def get_git_version(default: str = "unknown") -> str:
try:
return (
subprocess.check_output(
["git", "describe", "--tags", "--dirty"], stderr=subprocess.DEVNULL
)
.decode("utf-8")
.strip()
)
except Exception:
return default

Xet Storage Details

Size:
339 Bytes
·
Xet hash:
a1464a8e8b6a6f3f131a245425f2a82de0528a77603de2328818bb5cf0c5dd16

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.