Download scripts/build_aws_operations_csv.py from Vishvam10/cloudenv: direct link, hf CLI and curl.
- Browser
- Download file 610 Bytes
-
https://huggingface.co/spaces/Vishvam10/cloudenv/resolve/main/scripts/build_aws_operations_csv.py
- Command line
-
hf download hf://spaces/Vishvam10/cloudenv/scripts/build_aws_operations_csv.py
-
curl -L -o build_aws_operations_csv.py https://huggingface.co/spaces/Vishvam10/cloudenv/resolve/main/scripts/build_aws_operations_csv.py
610 Bytes
| from __future__ import annotations | |
| import sys | |
| from pathlib import Path | |
| from cloudenv.server.providers.aws.operations_data import ( | |
| AWS_SERVICE_OPERATIONS as OPS, | |
| ) | |
| ROOT = Path(__file__).resolve().parent | |
| OUT = ROOT / "aws_operations.csv" | |
| REPO_ROOT = ROOT.parent | |
| sys.path.insert(0, str(REPO_ROOT)) | |
| def main() -> None: | |
| lines: list[str] = [] | |
| for svc, ops in sorted(OPS.items()): | |
| for op in ops: | |
| lines.append(f"{svc},{op}") | |
| OUT.write_text("\n".join(lines) + "\n", encoding="utf-8") | |
| print(f"Wrote {OUT} ({len(lines)} operations)") | |
| if __name__ == "__main__": | |
| main() | |