(cls, project_root: Path, project_name: str)
| 64 | |
| 65 | @classmethod |
| 66 | def create(cls, project_root: Path, project_name: str): |
| 67 | timestr = cls.__get_curr_time() |
| 68 | try: gitver = cls.__get_git_version() |
| 69 | except: gitver = "NOT_AVAILABLE" |
| 70 | cmd = cls.__get_sys_command() |
| 71 | |
| 72 | box = cls(Path(project_root, project_name, timestr)) |
| 73 | with box.open("metadata.yaml", "w") as f: |
| 74 | yaml.dump({"time": timestr, "git_version": gitver, "command": cmd}, f) |
| 75 | return box |
| 76 | |
| 77 | @classmethod |
| 78 | def load(cls, root: Path | str): |
no test coverage detected