Download tools/verify_normative_standard.py from adamm-hf/P-NP: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/spaces/adamm-hf/P-NP/resolve/main/tools/verify_normative_standard.py
- Command line
-
hf download hf://spaces/adamm-hf/P-NP/tools/verify_normative_standard.py
-
curl -L -o verify_normative_standard.py https://huggingface.co/spaces/adamm-hf/P-NP/resolve/main/tools/verify_normative_standard.py
568 Bytes
| from __future__ import annotations | |
| import argparse | |
| import json | |
| from pathlib import Path | |
| from pnp_lab.normative_standard import verify_normative_standard | |
| def main() -> int: | |
| parser = argparse.ArgumentParser(description="Verify the normative research-validity/provenance standard") | |
| parser.add_argument("path", type=Path) | |
| args = parser.parse_args() | |
| status = verify_normative_standard(args.path) | |
| print(json.dumps(status.to_dict(), indent=2, sort_keys=True)) | |
| return 0 if status.ok else 2 | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |