← Về thư mục
skills/pufferlib/scripts/_common.py
- UserInputError · class · L38-L39 — class UserInputError(ValueError)
- bounded_int · function · L42-L52 — def bounded_int(value: str | int, *, name: str, minimum: int, maximum: int) -> int
- validate_slug · function · L55-L61 — def validate_slug(value: str, *, name: str = "name") -> str
- validate_sha256 · function · L64-L68 — def validate_sha256(value: str, *, name: str = "sha256") -> str
- _reject_constant · function · L71-L72 — def _reject_constant(value: str) -> None
- _reject_duplicate_keys · function · L75-L81 — def _reject_duplicate_keys(pairs: list[tuple[str, Any]]) -> dict[str, Any]
- _assert_finite_json · function · L84-L92 — def _assert_finite_json(value: Any, path: str = "$") -> None
- strict_json_loads · function · L95-L108 — def strict_json_loads(text: str) -> Any
- strict_json_dumps · function · L111-L121 — def strict_json_dumps(value: Any, *, pretty: bool = True) -> str
- emit_json · function · L124-L125 — def emit_json(value: Any, *, pretty: bool = True) -> None
- resolve_local_path · function · L128-L149 — def resolve_local_path( value: str | Path, *, root: str | Path, must_exist: bool = True, reject_symlink: bool = True, ) -> Path
- load_json_object · function · L152-L170 — def load_json_object( path: str | Path, *, root: str | Path, max_bytes: int = MAX_JSON_BYTES, ) -> dict[str, Any]
- secret_key_paths · function · L173-L186 — def secret_key_paths(value: Any, path: str = "$") -> list[str]
- require_keys · function · L189-L199 — def require_keys( mapping: dict[str, Any], *, allowed: set[str], required: set[str], path: str, ) -> list[str]