|
AQIT 0.1.0
|
Functions | |
| Path | run_root (Path|None cwd=None) |
| Path | revision_dir (str rev_id, *, Path|None cwd=None) |
| Path | run_dir (str run_id, *, Path|None cwd=None) |
| str | hash_file (Path path) |
| int|None | _count_rows (Path path, str fmt) |
| list[str]|None | _csv_columns (Path path) |
| DataRevision | capture_revision (str|Path path, *, bool snapshot=False, Path|None cwd=None) |
| None | write_json (Path path, Any payload) |
| Path | save_run (RunRecord record) |
| RunRecord | load_run (str run_id, *, Path|None cwd=None) |
Variables | |
| str | RUN_ROOT_NAME = "aquin_run" |
|
protected |
Definition at line 48 of file store.py.
Referenced by capture_revision().
|
protected |
Definition at line 62 of file store.py.
Referenced by capture_revision().
| DataRevision capture_revision | ( | str | Path | path, |
| * | , | ||
| bool | snapshot = False, | ||
| Path | None | cwd = None ) |
Definition at line 71 of file store.py.
References _count_rows(), _csv_columns(), hash_file(), and revision_dir().
| str hash_file | ( | Path | path | ) |
Definition at line 37 of file store.py.
Referenced by capture_revision().
| RunRecord load_run | ( | str | run_id, |
| * | , | ||
| Path | None | cwd = None ) |
| Path revision_dir | ( | str | rev_id, |
| * | , | ||
| Path | None | cwd = None ) |
| Path run_dir | ( | str | run_id, |
| * | , | ||
| Path | None | cwd = None ) |
| Path run_root | ( | Path | None | cwd = None | ) |
Definition at line 25 of file store.py.
Referenced by revision_dir(), and run_dir().
| Path save_run | ( | RunRecord | record | ) |
Definition at line 116 of file store.py.
References write_json().
| None write_json | ( | Path | path, |
| Any | payload ) |
Definition at line 111 of file store.py.
Referenced by save_run().