Is your feature request related to a problem? Please describe.
Change the library logic to use offline features before making network requests
Describe the solution you would like
e.g.:
url = f"https://raw.githubusercontent.com/HIF-org/HIF-standard/{HIF_SCHEMA_COMMIT_SHA}/schemas/hif_schema.json"
try:
schema = requests.get(url, timeout=10).json()
except (requests.RequestException, requests.Timeout):
with resources.files("hyperbench.utils.schema").joinpath("hif_schema.json").open("r") as f:
schema = json.load(f)
validator = fastjsonschema.compile(schema)
invert the check to see if the file exist
Is your feature request related to a problem? Please describe.
Change the library logic to use offline features before making network requests
Describe the solution you would like
e.g.:
invert the check to see if the file exist