arudradey/ml-cpu-storage / emsdk /scripts /get_release_info.py
arudradey's picture
download
raw
532 Bytes
#!/usr/bin/env python3
import json
import sys
def get_latest(tagfile):
with open(tagfile) as f:
versions = json.load(f)
print(versions['aliases']['latest'])
return 0
def get_hash(tagfile, version):
with open(tagfile) as f:
versions = json.load(f)
print(versions['releases'][version])
return 0
if __name__ == '__main__':
if sys.argv[2] == 'latest':
sys.exit(get_latest(sys.argv[1]))
if sys.argv[2] == 'hash':
sys.exit(get_hash(sys.argv[1], sys.argv[3]))

Xet Storage Details

Size:
532 Bytes
·
Xet hash:
cd138d28a87dec1e853150279955274d0b8a2679a98f1814b298d94e34adaa2c

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