← Về thư mục
openai4s/server/artifact_workbench.py
- WorkbenchError · class · L70-L75 — class WorkbenchError(Exception)
- init · method · L71-L75 — def init(self, status: int, message: str, code: str = "workbench_error")
- _artifact_too_large · function · L78-L79 — def _artifact_too_large(message: str) -> WorkbenchError
- _bounded_snapshot_bytes · function · L82-L97 — def _bounded_snapshot_bytes(path: Path, *, max_bytes: int | None = None) -> bytes
- official_workbench_enabled · function · L100-L104 — def official_workbench_enabled(config: Any) -> bool
- require_workbench · function · L107-L113 — def require_workbench(config: Any) -> None
- parse_delimited · function · L116-L151 — def parse_delimited(text: str, filename: str = "") -> list[list[str]]
- infer_column_type · function · L154-L165 — def infer_column_type(values: Sequence[str]) -> str
- _coerce · function · L168-L189 — def _coerce(value: str, kind: str) -> tuple[int, Any]
- materialize_table · function · L192-L265 — def materialize_table( rows: Sequence[Sequence[str]], *, sort: str = "", descending: bool = False, filters: Mapping[str, str] | None = None, ) -> dict[str, Any]
- query_table · function · L268-L304 — def query_table( rows: Sequence[Sequence[str]], *, sort: str = "", descending: bool = False, filters: Mapping[str, str] | None = None, offset: int = 0, limit: int = 50, ) -> dict[str, Any]
- _metadata_int · function · L307-L310 — def _metadata_int(value: Any) -> int | None
- _parquet_shape · function · L313-L362 — def _parquet_shape(parquet_file: Any) -> tuple[int, int]
- read_parquet_rows · function · L365-L444 — def read_parquet_rows(path: Path) -> list[list[str]]: # Bound compressed bytes before importing an optional engine or asking it # to inspect metadata. BytesIO pins that exact bounded snapshot throughout # the preflight and decode instead of reopening a mutable path.
- unified_diff · function · L447-L488 — def unified_diff(old: str, new: str, *, from_label: str, to_label: str) -> str
- line_count · function · L450-L471 — def line_count(text: str) -> int
- parse_molfile · function · L491-L535 — def parse_molfile(text: str) -> dict[str, Any] | None
- smiles_carbon_count · function · L538-L539 — def smiles_carbon_count(text: str) -> int
- structure_summary · function · L542-L568 — def structure_summary(content: str, filename: str = "") -> dict[str, Any]
- is_benzene · function · L571-L591 — def is_benzene(summary: Mapping[str, Any]) -> bool
- _pdf_literal · function · L594-L644 — def _pdf_literal(text: str, start: int) -> tuple[str, int] | None
- _pdf_space_end · function · L647-L651 — def _pdf_space_end(text: str, start: int) -> int
- _pdf_operator_at · function · L654-L658 — def _pdf_operator_at(text: str, start: int, operator: str) -> bool
- extract_pdf_text · function · L661-L728 — def extract_pdf_text(data: bytes) -> list[dict[str, Any]]
- append · function · L668-L677 — def append(value: str) -> None
- _OutlineParser · class · L731-L787 — class _OutlineParser(HTMLParser)
- init · method · L732-L737 — def init(self) -> None
- handle_starttag · method · L739-L769 — def handle_starttag(self, tag: str, attrs: list[tuple[str, str | None]]) -> None
- handle_data · method · L771-L780 — def handle_data(self, data: str) -> None
- handle_endtag · method · L782-L787 — def handle_endtag(self, tag: str) -> None
- html_outline · function · L790-L798 — def html_outline(text: str) -> list[dict[str, str]]
- normalize_locator · function · L801-L844 — def normalize_locator(kind: str, locator: Any) -> dict[str, Any]
- format_located_annotations · function · L847-L874 — def format_located_annotations(annos: Sequence[Mapping[str, Any]]) -> str
- ketcher_assets_present · function · L877-L878 — def ketcher_assets_present() -> bool
- ketcher_document · function · L881-L902 — def ketcher_document(config: Any, query: Mapping[str, Any] | None = None) -> bytes
- _one · function · L892-L897 — def _one(name: str) -> str
- checksum_text · function · L930-L931 — def checksum_text(text: str) -> str
- ArtifactWorkbenchService · class · L934-L1252 — class ArtifactWorkbenchService
- init · method · L937-L940 — def init(self, *, store: Any, artifacts: Any, broadcast: Any = None) -> None
- _artifact · method · L942-L946 — def _artifact(self, artifact_id: str) -> dict[str, Any]
- _version_snapshot · method · L948-L974 — def _version_snapshot( self, artifact: Mapping[str, Any], version_id: str | None = None ) -> tuple[str, Path]
- _bytes · method · L976-L984 — def _bytes( self, artifact: Mapping[str, Any], version_id: str | None = None, *, max_bytes: int | None = None, ) -> bytes
- _table_rows · method · L986-L1015 — def _table_rows( self, artifact: Mapping[str, Any], version_id: str | None = None ) -> tuple[str, str, list[list[str]], str]
- table · method · L1017-L1041 — def table( self, artifact_id: str, *, sort: str = "", descending: bool = False, filters: Mapping[str, str] | None = None, offset: int = 0, limit: int = 50, version_id: str | None = None, ) -> dict[str, Any]
- table_profile · method · L1043-L1092 — def table_profile( self, artifact_id: str, *, version_id: str, filters: Mapping[str, str] | None = None, ) -> dict[str, Any]
- table_export · method · L1094-L1143 — def table_export( self, artifact_id: str, *, version_id: str, sort: str = "", descending: bool = False, filters: Mapping[str, str] | None = None, spreadsheet_safe: bool = False, ) -> dict[str, Any]
- diff · method · L1145-L1182 — def diff( self, artifact_id: str, *, from_version: str | None = None, to_version: str | None = None, ) -> dict[str, Any]
- save_structure · method · L1184-L1234 — def save_structure( self, artifact_id: str, *, content: str, fmt: str = "mol" ) -> dict[str, Any]
- pdf_text · method · L1236-L1243 — def pdf_text(self, artifact_id: str) -> dict[str, Any]
- html_outline · method · L1245-L1252 — def html_outline(self, artifact_id: str) -> dict[str, Any]