← Về thư mục
skills/pytdc/scripts/_common.py
- CliError · class · L16-L17 — class CliError(ValueError)
- bounded_int · function · L20-L34 — def bounded_int(minimum: int, maximum: int)
- convert · function · L23-L32 — def convert(value: str) -> int
- canonical_name · function · L37-L46 — def canonical_name(query: str, choices: Iterable[str], label: str) -> str
- safe_relative_path · function · L49-L67 — def safe_relative_path( raw_path: str, *, label: str, allow_workspace_root: bool = False, ) -> Path
- safe_directory · function · L70-L86 — def safe_directory( raw_path: str, *, label: str, create: bool = False, must_exist: bool = False, ) -> Path
- safe_input_file · function · L89-L98 — def safe_input_file(raw_path: str, *, max_bytes: int, label: str) -> Path
- validate_fractions · function · L101-L113 — def validate_fractions(values: Sequence[float]) -> tuple[float, float, float]
- load_pytdc_metadata · function · L116-L127 — def load_pytdc_metadata() -> tuple[Any, str]
- truncate_value · function · L130-L158 — def truncate_value(value: Any, *, max_string: int = 160) -> Any
- read_json_file · function · L161-L171 — def read_json_file(path: Path) -> Any
- reject_constant · function · L164-L165 — def reject_constant(value: str) -> None
- emit_json · function · L174-L205 — def emit_json(payload: Any, output: str | None, *, force: bool = False) -> None