Spaces:
Running on T4
Running on T4
Download tools/build_load_timing_schema.py from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/tools/build_load_timing_schema.py
- Command line
-
hf download hf://spaces/modventures/baseball-engine/tools/build_load_timing_schema.py
-
curl -L -o build_load_timing_schema.py https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/tools/build_load_timing_schema.py
399 Bytes
| """Export the timing API's response contract as standalone JSON Schema.""" | |
| import json | |
| from pathlib import Path | |
| from baseball_batting.load_timing_contract import load_timing_schema | |
| def main(): | |
| path = Path(__file__).resolve().parents[1]/"docs/load-timing.schema.json" | |
| path.write_text(json.dumps(load_timing_schema(), indent=2)+"\n") | |
| print(path) | |
| if __name__ == "__main__": | |
| main() | |