← Về thư mục
skills/exploratory-data-analysis/scripts/_common.py
- CliError · class · L34-L35 — class CliError(ValueError)
- bounded_integer · function · L38-L51 — def bounded_integer( value: int, *, name: str, minimum: int, maximum: int, ) -> int
- bounded_file_limit · function · L54-L62 — def bounded_file_limit(value: int) -> int
- finite_number · function · L65-L72 — def finite_number(value: str) -> float | None
- _reject_url_and_traversal · function · L75-L91 — def _reject_url_and_traversal(value: str) -> None
- _absolute_lexical · function · L94-L97 — def _absolute_lexical(path: Path) -> Path
- _reject_symlink_components · function · L100-L111 — def _reject_symlink_components(path: Path) -> None
- checked_root · function · L114-L130 — def checked_root(value: str | os.PathLike[str]) -> Path
- _within_root · function · L133-L137 — def _within_root(candidate: Path, root: Path) -> None
- _suffix_matches · function · L140-L142 — def _suffix_matches(path: Path, suffixes: Iterable[str]) -> bool
- checked_input_file · function · L145-L182 — def checked_input_file( value: str | os.PathLike[str], *, root: str | os.PathLike[str] = ".", suffixes: Iterable[str] | None = None, max_bytes: int = DEFAULT_MAX_FILE_BYTES, ) -> Path
- checked_output_file · function · L185-L223 — def checked_output_file( value: str | os.PathLike[str], *, root: str | os.PathLike[str] = ".", suffixes: Iterable[str], force: bool = False, ) -> Path
- _strict_json_bytes · function · L226-L244 — def _strict_json_bytes(document: Any) -> bytes
- atomic_write_bytes · function · L247-L280 — def atomic_write_bytes( output: str | os.PathLike[str], payload: bytes, *, root: str | os.PathLike[str] = ".", suffixes: Iterable[str], force: bool = False, ) -> Path
- emit_json · function · L283-L302 — def emit_json( document: Any, *, output: str | os.PathLike[str] | None = None, root: str | os.PathLike[str] = ".", force: bool = False, ) -> None
- emit_markdown · function · L305-L328 — def emit_markdown( text: str, *, output: str | os.PathLike[str] | None = None, root: str | os.PathLike[str] = ".", force: bool = False, ) -> None
- stable_token · function · L331-L338 — def stable_token(value: str, *, kind: str) -> str
- sanitize_identifier · function · L341-L351 — def sanitize_identifier(value: str) -> str
- markdown_scalar · function · L354-L364 — def markdown_scalar(value: str) -> str
- display_identifier · function · L367-L377 — def display_identifier( value: str, *, kind: str, reveal_identifiers: bool, ) -> str
- _reject_json_constant · function · L380-L381 — def _reject_json_constant(value: str) -> None
- _unique_json_object · function · L384-L390 — def _unique_json_object(pairs: list[tuple[str, Any]]) -> dict[str, Any]
- load_strict_json · function · L393-L412 — def load_strict_json( path: Path, *, max_bytes: int = MAX_JSON_BYTES, ) -> Any
- validate_keys · function · L415-L431 — def validate_keys( value: Mapping[str, Any], *, allowed: Iterable[str], required: Iterable[str] = (), context: str, ) -> None
- sha256_file · function · L434-L446 — def sha256_file(path: Path, *, max_bytes: int) -> str
- run_cli · function · L449-L460 — def run_cli(function: Any) -> int