Skip to content

Hypergraph is more powerful. Transform unstructured text into structured knowledge with LLMs. Graphs, hypergraphs, and spatio-temporal extractions — with one command.

refactor: use ontomem 0.3.0 public APIs for removal and editing

yifanfeng97942c4e79a5d5
diff --git a/hyperextract/types/base.py b/hyperextract/types/base.py
index 6ab8023..52711fb 100644
--- a/hyperextract/types/base.py
+++ b/hyperextract/types/base.py
@@ -1,6 +1,5 @@
import json
from abc import ABC, abstractmethod
-from collections.abc import Callable
from datetime import datetime
from pathlib import Path
from typing import Any, Generic, TypeVar
@@ -378,70 +377,6 @@ class BaseAutoType(ABC, Generic[T]):
results.append(r)
return results
- def _edit_item(
- self,
- memory,
- editor,
- key_extractor: Callable,
- schema_name: str,
- key: str,
- remove_fact: str | None,
- instruction: str | None,
- dry_run: bool,
- ) -> dict:
- """Shared soft-delete engine: LLM-rewrite one stored item minus a fact.
-
- The rewrite is validated before it is applied: the item key must be
- unchanged (a changed key is a rename, i.e. delete + create, not an
- edit) and the item must actually differ from the stored one.
-
- Args:
- memory: The OMem instance holding the item.
- editor: Runnable producing a rewritten item (prompt | structured LLM).
- key_extractor: Key function used to validate the rewrite.
- schema_name: "node" or "edge" (for reports/logs).
- key: Key of the item to edit.
- remove_fact: Fact to remove (exclusive with `instruction`).
- instruction: Free-form edit instruction (exclusive with `remove_fact`).
- dry_run: Return the proposed rewrite without applying it.
-
- Returns:
- Report dict with `changed`, `applied`, `old`, and `new`.
-
- Raises:
- KeyError: If `key` is not present.
- ValueError: If the target arguments are invalid or the rewrite
- changed the item's key.
- """
- if (remove_fact is None) == (instruction is None):
- raise ValueError("Provide exactly one of remove_fact= or instruction=.")
- target = remove_fact if remove_fact is not None else instruction
-
- old = memory.get(key)
- if old is None:
- raise KeyError(f"No {schema_name} with key: {key!r}")
-
- new = editor.invoke(
- {"item_json": old.model_dump_json(), "key": key, "target": target}
- )
- new_key = key_extractor(new)
- if new_key != key:
- raise ValueError(
- f"Rejected rewrite: the {schema_name} key changed "
- f"({key!r} -> {new_key!r}). Renaming is not an edit; "
- "delete the old item and add the new one explicitly."
- )
- if new == old:
- return {"changed": False, "applied": False, "old": old, "new": new}
-
- if dry_run:
- return {"changed": True, "applied": False, "old": old, "new": new}
-
- memory.remove(key)
- memory.add(new)
- logger.info("stage=edit_item schema=%s key=%s applied=True", schema_name, key)
- return {"changed": True, "applied": True, "old": old, "new": new}
-
def _summarize_extracted(self, data: T) -> str:
"""Return a concise summary of extracted data for debug logging."""
try:
diff --git a/hyperextract/types/graph.py b/hyperextract/types/graph.py
index 22ddf82..eed515c 100644
--- a/hyperextract/types/graph.py
+++ b/hyperextract/types/graph.py
@@ -13,7 +13,6 @@ from typing import (
TypeVar,
)
-from langchain_core.documents import Document
from langchain_core.embeddings import Embeddings
from langchain_core.language_models.chat_models import BaseChatModel
from langchain_core.messages import AIMessage
@@ -74,95 +73,14 @@ DEFAULT_EDGE_PROMPT = (
"{source_text}"
)
-DEFAULT_EDIT_PROMPT = (
- "You are a precise knowledge-base editor. You receive one stored item as JSON "
- "and a removal target (a fact or an editing instruction).\n\n"
- "RULES:\n"
- "1. Rewrite the item so that the target fact (and only that fact) is removed.\n"
- "2. Keep every other field, value, and wording EXACTLY unchanged.\n"
- "3. NEVER change the item's identifier — its key must stay: {key}\n"
- "4. If the fact does not appear in the item, return it unchanged.\n"
- "5. Do not add new information.\n\n"
- "# Current item\n"
- "{item_json}\n\n"
- "# Removal target\n"
- "{target}"
-)
-
-
-def _patch_vector_index(
- memory: OMem,
- vs,
- removed_keys: set,
- upserted_keys: set,
-) -> bool:
- """Partially update a built FAISS index for the affected keys.
-
- Deletes the vectors of ``removed_keys``/``upserted_keys`` and re-embeds
- only the upserted items — instead of OMem's default behavior of dropping
- the whole index (which forces a full re-embed on next use).
-
- The ``key → vector_id`` map is derived by scanning the docstore, which
- already stores the key per vector, so no storage-format change is needed.
-
- Args:
- memory: The OMem instance (used for key-extraction serialization).
- vs: The langchain FAISS vectorstore held by ``memory._index``.
- removed_keys: Keys whose vectors must be deleted.
- upserted_keys: Keys present in ``memory`` whose vectors must be
- re-embedded (delete old + insert new).
-
- Returns:
- True if the index was patched in place; False on any failure, in
- which case the caller must drop the index and let OMem rebuild it
- fully (the pre-partial-patch behavior).
-
- Note:
- Uses ``OMem._index`` / ``_serialize_for_embedding`` — protected
- surface of the same-author ontomem package until a public
- partial-update API exists there.
- """
- try:
- id_by_key = {}
- for doc_id, doc in vs.docstore._dict.items():
- doc_key = doc.metadata.get("key")
- if doc_key is not None:
- id_by_key[doc_key] = doc_id
-
- stale_ids = [
- id_by_key[k] for k in removed_keys | upserted_keys if k in id_by_key
- ]
- if stale_ids:
- vs.delete(stale_ids)
-
- documents = []
- for key in upserted_keys:
- item = memory.get(key)
- if item is None:
- continue
- documents.append(
- Document(
- page_content=memory._serialize_for_embedding(item),
- metadata={"key": key, "raw": item.model_dump()},
- )
- )
- if documents:
- vs.add_documents(documents)
- return True
- except Exception as e:
- logger.warning(
- "stage=index_patch_failed error=%s falling_back_to_full_rebuild", e
- )
- return False
-
class GraphEditMixin:
"""Hard-delete and LLM-assisted soft-delete for graph-family AutoTypes.
- Requires on `self`: `_node_memory` / `_edge_memory` (OMem), the
+ Requires on `self`: `_node_memory` / `_edge_memory` (OMem) and the
`node_key_extractor` / `edge_key_extractor` / `nodes_in_edge_extractor`
- callables, and the `node_editor` / `edge_editor` runnables wired in
- `__init__`.
+ callables. Index updates and LLM-assisted item editing delegate to
+ OMem's `sync_index` / `edit` (ontomem >= 0.3.0).
"""
# ==================== Removal ====================
@@ -181,59 +99,45 @@ class GraphEditMixin:
Report dict with `removed_nodes`, `not_found_nodes`,
`removed_orphan_edges`, and `index_patched`.
"""
- node_vs = self._node_memory._index
- edge_vs = self._edge_memory._index
- # Detach the vectorstores so OMem's remove() can't discard them; they
- # are patched and reattached after the storage mutations below.
- self._node_memory._index = None
- self._edge_memory._index = None
-
- removed: list[str] = []
- not_found: list[str] = []
- removed_node_keys = set()
- for key in keys:
- if self._node_memory.remove(key):
- removed.append(key)
- removed_node_keys.add(key)
- else:
- not_found.append(key)
+ node_had = self._node_memory.has_index()
+ edge_had = self._edge_memory.has_index()
+
+ removed, not_found = self._node_memory.remove_many(keys)
+ removed_node_keys = set(removed)
orphaned: list = []
if removed_node_keys:
+ orphan_candidates = []
for edge in list(self._edge_memory.items):
endpoints = set(self.nodes_in_edge_extractor(edge))
if endpoints & removed_node_keys:
- edge_key = self.edge_key_extractor(edge)
- if self._edge_memory.remove(edge_key):
- orphaned.append(edge_key)
-
- node_ok = True
- if node_vs is not None:
- node_ok = _patch_vector_index(
- self._node_memory, node_vs, removed_node_keys, set()
- )
- self._node_memory._index = node_vs if node_ok else None
- edge_ok = True
- if edge_vs is not None:
- edge_ok = _patch_vector_index(
- self._edge_memory, edge_vs, set(orphaned), set()
- )
- self._edge_memory._index = edge_vs if edge_ok else None
- index_patched = (node_vs is None or node_ok) and (edge_vs is None or edge_ok)
+ orphan_candidates.append(self.edge_key_extractor(edge))
+ orphaned, _ = self._edge_memory.remove_many(orphan_candidates)
+
+ node_ok = (
+ self._node_memory.sync_index(removed_keys=removed_node_keys)
+ if node_had
+ else False
+ )
+ edge_ok = (
+ self._edge_memory.sync_index(removed_keys=set(orphaned))
+ if edge_had and orphaned
+ else True
+ )
+ index_patched = (node_had or edge_had) and node_ok and edge_ok
logger.info(
"stage=remove_nodes removed=%d not_found=%d orphan_edges=%d index_patched=%s",
len(removed),
len(not_found),
len(orphaned),
- index_patched and (node_vs is not None or edge_vs is not None),
+ index_patched,
)
return {
"removed_nodes": removed,
"not_found_nodes": not_found,
"removed_orphan_edges": orphaned,
- "index_patched": index_patched
- and (node_vs is not None or edge_vs is not None),
+ "index_patched": index_patched,
}
def remove_edges(self, *keys: str) -> dict:
@@ -249,26 +153,16 @@ class GraphEditMixin:
Report dict with `removed_edges`, `not_found_edges`, and
`index_patched`.
"""
- edge_vs = self._edge_memory._index
- self._edge_memory._index = None
-
- removed: list[str] = []
- not_found: list[str] = []
- removed_edge_keys = set()
- for key in keys:
- if self._edge_memory.remove(key):
- removed.append(key)
- removed_edge_keys.add(key)
- else:
- not_found.append(key)
+ edge_had = self._edge_memory.has_index()
- edge_ok = True
- if edge_vs is not None:
- edge_ok = _patch_vector_index(
- self._edge_memory, edge_vs, removed_edge_keys, set()
- )
- self._edge_memory._index = edge_vs if edge_ok else None
- index_patched = edge_vs is None or edge_ok
+ removed, not_found = self._edge_memory.remove_many(keys)
+
+ edge_ok = (
+ self._edge_memory.sync_index(removed_keys=set(removed))
+ if edge_had
+ else False
+ )
+ index_patched = edge_had and edge_ok
logger.info(
"stage=remove_edges removed=%d not_found=%d", len(removed), len(not_found)
@@ -291,8 +185,9 @@ class GraphEditMixin:
) -> dict:
"""Soft-delete a fact from a node via LLM-assisted rewrite.
- When the search index is built, its vector for this node is updated
- in place (re-embedded once) instead of discarding the index.
+ Delegates to `OMem.edit` on the node memory: the item is rewritten
+ under the same schema and replaced (merge bypassed), the key must
+ stay unchanged, and the built index is patched in place.
Args:
key: Node key to edit.
@@ -306,34 +201,12 @@ class GraphEditMixin:
Report dict with `changed`, `applied`, `old`, `new`, and
`index_patched`.
"""
- node_vs = self._node_memory._index
- self._node_memory._index = None
- try:
- report = self._edit_item(
- self._node_memory,
- self.node_editor,
- self.node_key_extractor,
- "node",
- key,
- remove_fact,
- instruction,
- dry_run,
- )
- except Exception:
- self._node_memory._index = node_vs
- raise
-
- if node_vs is not None:
- if report["changed"]:
- index_patched = _patch_vector_index(
- self._node_memory, node_vs, set(), {key}
- )
- self._node_memory._index = node_vs if index_patched else None
- else:
- self._node_memory._index = node_vs
- index_patched = True
- report["index_patched"] = index_patched
- return report
+ return self._node_memory.edit(
+ key,
+ remove_fact=remove_fact,
+ instruction=instruction,
+ dry_run=dry_run,
+ )
def edit_edge(
self,
@@ -345,8 +218,7 @@ class GraphEditMixin:
) -> dict:
"""Soft-delete a fact from an edge via LLM-assisted rewrite.
- When the search index is built, its vector for this edge is updated
- in place (re-embedded once) instead of discarding the index.
+ Delegates to `OMem.edit` on the edge memory (see `edit_node`).
Args:
key: Edge key to edit.
@@ -360,34 +232,12 @@ class GraphEditMixin:
Report dict with `changed`, `applied`, `old`, `new`, and
`index_patched`.
"""
- edge_vs = self._edge_memory._index
- self._edge_memory._index = None
- try:
- report = self._edit_item(
- self._edge_memory,
- self.edge_editor,
- self.edge_key_extractor,
- "edge",
- key,
- remove_fact,
- instruction,
- dry_run,
- )
- except Exception:
- self._edge_memory._index = edge_vs
- raise
-
- if edge_vs is not None:
- if report["changed"]:
- index_patched = _patch_vector_index(
- self._edge_memory, edge_vs, set(), {key}
- )
- self._edge_memory._index = edge_vs if index_patched else None
- else:
- self._edge_memory._index = edge_vs
- index_patched = True
- report["index_patched"] = index_patched
- return report
+ return self._edge_memory.edit(
+ key,
+ remove_fact=remove_fact,
+ instruction=instruction,
+ dry_run=dry_run,
+ )
class AutoGraphSchema(BaseModel, Generic[NodeSchema, EdgeSchema]):
@@ -645,21 +495,6 @@ class AutoGraph(
)
)
- # LLM-assisted editing (soft delete): rewrite one stored item minus a
- # given fact, under the same schema. Tests may stub these runnables.
- edit_template = ChatPromptTemplate.from_messages(
- [
- ("system", DEFAULT_EDIT_PROMPT),
- ("human", "Remove it from the item now."),
- ]
- )
- self.node_editor = edit_template | self.llm_client.with_structured_output(
- self.node_schema, method="function_calling"
- )
- self.edge_editor = edit_template | self.llm_client.with_structured_output(
- self.edge_schema, method="function_calling"
- )
-
def _default_prompt(self) -> str:
"""Returns the default prompt for one-stage graph extraction."""
return DEFAULT_GRAPH_PROMPT
@@ -1019,28 +854,6 @@ class AutoGraph(
return self.graph_schema(nodes=valid_nodes, edges=refined_edges)
- def remove_edges(self, *keys: str) -> dict:
- """Hard-delete edges by key.
-
- Args:
- keys: Edge keys (as produced by `edge_key_extractor`).
-
- Returns:
- Report dict with `removed_edges` and `not_found_edges`.
- """
- removed: list[str] = []
- not_found: list[str] = []
- for key in keys:
- if self._edge_memory.remove(key):
- removed.append(key)
- else:
- not_found.append(key)
-
- logger.info(
- "stage=remove_edges removed=%d not_found=%d", len(removed), len(not_found)
- )
- return {"removed_edges": removed, "not_found_edges": not_found}
-
# ==================== Merge Logic ====================
def merge_batch_data(
diff --git a/hyperextract/types/hypergraph.py b/hyperextract/types/hypergraph.py
index bd5084e..9f08305 100644
--- a/hyperextract/types/hypergraph.py
+++ b/hyperextract/types/hypergraph.py
@@ -26,7 +26,7 @@ from pydantic import BaseModel, Field, create_model
from hyperextract.utils.logging import get_logger
from .base import BaseAutoType
-from .graph import DEFAULT_EDIT_PROMPT, GraphEditMixin
+from .graph import GraphEditMixin
logger = get_logger(__name__)
@@ -335,20 +335,6 @@ class AutoHypergraph(
)
)
- # LLM-assisted editing (soft delete); shares the prompt with AutoGraph.
- edit_template = ChatPromptTemplate.from_messages(
- [
- ("system", DEFAULT_EDIT_PROMPT),
- ("human", "Remove it from the item now."),
- ]
- )
- self.node_editor = edit_template | self.llm_client.with_structured_output(
- self.node_schema, method="function_calling"
- )
- self.edge_editor = edit_template | self.llm_client.with_structured_output(
- self.edge_schema, method="function_calling"
- )
-
# ==================== Prompts ====================
def _default_prompt(self) -> str:
diff --git a/pyproject.toml b/pyproject.toml
index 006d757..8dd8282 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -33,7 +33,7 @@ dependencies = [
"langchain-community>=0.4.1",
"langchain-openai>=1.1.7",
"structlog>=25.5.0",
- "ontomem>=0.2.3",
+ "ontomem>=0.3.0",
"ontosight>=0.1.8",
"python-dotenv>=1.2.1",
"semhash>=0.4.1",
diff --git a/tests/cli/test_remove.py b/tests/cli/test_remove.py
index a6efd9c..dbe19b5 100644
--- a/tests/cli/test_remove.py
+++ b/tests/cli/test_remove.py
@@ -27,16 +27,22 @@ class R(BaseModel):
description: str = ""
-class FakeEditor:
- """Stub for node_editor/edge_editor runnables."""
+class FakeChatModel:
+ """Chat-model stub: with_structured_output returns the canned item."""
- def __init__(self, rewritten):
- self.rewritten = rewritten
- self.calls = []
+ def __init__(self, canned):
+ self.canned = canned
- def invoke(self, inp):
- self.calls.append(inp)
- return self.rewritten
+ def with_structured_output(self, schema):
+ model = self
+
+ from langchain_core.runnables import Runnable
+
+ class _Runnable(Runnable):
+ def invoke(self, prompt_value, config=None, **kwargs):
+ return model.canned
+
+ return _Runnable()
def _real_ka():
@@ -143,7 +149,7 @@ class TestHardDeleteCli:
class TestSoftDeleteCli:
def test_soft_delete_applies_with_backup(self, ka_env):
ka, g = ka_env
- g.node_editor = FakeEditor(
+ g._node_memory.llm_client = FakeChatModel(
E(name="Apple", description="Apple makes iPhones.")
)
@@ -167,7 +173,7 @@ class TestSoftDeleteCli:
def test_soft_delete_dry_run_shows_proposal_only(self, ka_env):
ka, g = ka_env
- g.node_editor = FakeEditor(
+ g._node_memory.llm_client = FakeChatModel(
E(name="Apple", description="Apple makes iPhones.")
)
@@ -192,7 +198,7 @@ class TestSoftDeleteCli:
def test_soft_delete_key_change_rejected(self, ka_env):
ka, g = ka_env
- g.node_editor = FakeEditor(E(name="Renamed"))
+ g._node_memory.llm_client = FakeChatModel(E(name="Renamed"))
result = runner.invoke(
app,
diff --git a/tests/types/test_graph_removal.py b/tests/types/test_graph_removal.py
index 6f78f71..f06ae23 100644
--- a/tests/types/test_graph_removal.py
+++ b/tests/types/test_graph_removal.py
@@ -148,16 +148,29 @@ class TestHardDelete:
assert report["not_found_nodes"] == ["C"]
-class FakeEditor:
- """Stub for the node_editor/edge_editor runnables."""
+class FakeChatModel:
+ """Chat-model stub: with_structured_output returns the canned item.
- def __init__(self, rewritten):
- self.rewritten = rewritten
- self.calls = []
+ Instances are assigned to ``memory.llm_client`` so OMem.edit renders the
+ edit prompt and the stub records the rendered text for assertions.
+ """
+
+ def __init__(self, canned):
+ self.canned = canned # item returned from the structured rewrite
+ self.seen_text: list[str] = []
+
+ def with_structured_output(self, schema):
+ model = self
+
+ from langchain_core.runnables import Runnable
+
+ class _Runnable(Runnable):
+ def invoke(self, prompt_value, config=None, **kwargs):
+ text = str(prompt_value)
+ model.seen_text.append(text)
+ return model.canned
- def invoke(self, inp):
- self.calls.append(inp)
- return self.rewritten
+ return _Runnable()
class TestIndexPatching:
@@ -212,7 +225,7 @@ class TestIndexPatching:
[Entity(name="A", description="A was founded by X. A is in Y.")]
)
g.build_index()
- g.node_editor = FakeEditor(Entity(name="A", description="A is in Y."))
+ g._node_memory.llm_client = FakeChatModel(Entity(name="A", description="A is in Y."))
report = g.edit_node("A", remove_fact="founded by X")
@@ -288,7 +301,7 @@ class TestSoftDelete:
g._node_memory.add(
[Entity(name="A", description="A was founded by X. A is in Y.")]
)
- g.node_editor = FakeEditor(Entity(name="A", description="A is in Y."))
+ g._node_memory.llm_client = FakeChatModel(Entity(name="A", description="A is in Y."))
report = g.edit_node("A", remove_fact="founded by X", dry_run=True)
@@ -302,7 +315,7 @@ class TestSoftDelete:
g._node_memory.add(
[Entity(name="A", description="A was founded by X. A is in Y.")]
)
- g.node_editor = FakeEditor(Entity(name="A", description="A is in Y."))
+ g._node_memory.llm_client = FakeChatModel(Entity(name="A", description="A is in Y."))
report = g.edit_node("A", remove_fact="founded by X")
@@ -313,19 +326,22 @@ class TestSoftDelete:
def test_editor_receives_item_json_key_and_target(self):
g = _graph()
g._node_memory.add([Entity(name="A", description="hello")])
- editor = FakeEditor(Entity(name="A", description="hello"))
- g.node_editor = editor
+ editor = FakeChatModel(Entity(name="A", description="hello"))
+ g._node_memory.llm_client = editor
g.edit_node("A", instruction="drop everything about X")
- assert editor.calls[0]["key"] == "A"
- assert "hello" in editor.calls[0]["item_json"]
- assert editor.calls[0]["target"] == "drop everything about X"
+ # The rendered edit prompt carries the item JSON, key, and target.
+ assert len(editor.seen_text) == 1
+ prompt_text = editor.seen_text[0]
+ assert '"A"' in prompt_text
+ assert "hello" in prompt_text
+ assert "drop everything about X" in prompt_text
def test_key_change_is_rejected(self):
g = _graph()
g._node_memory.add([Entity(name="A")])
- g.node_editor = FakeEditor(Entity(name="Renamed")) # identity break
+ g._node_memory.llm_client = FakeChatModel(Entity(name="Renamed")) # identity break
with pytest.raises(ValueError, match="key changed"):
g.edit_node("A", remove_fact="whatever")
@@ -335,7 +351,7 @@ class TestSoftDelete:
def test_unchanged_rewrite_reports_no_change(self):
g = _graph()
g._node_memory.add([Entity(name="A", description="same")])
- g.node_editor = FakeEditor(Entity(name="A", description="same"))
+ g._node_memory.llm_client = FakeChatModel(Entity(name="A", description="same"))
report = g.edit_node("A", remove_fact="not present anyway")
@@ -369,7 +385,7 @@ class TestSoftDelete:
)
# relation_type is part of the edge key, so the rewrite keeps it and
# only changes the description — a key-changing rewrite is rejected.
- g.edge_editor = FakeEditor(
+ g._edge_memory.llm_client = FakeChatModel(
Relation(
source="A",
target="B",
@@ -387,7 +403,7 @@ class TestSoftDelete:
g = _graph()
g._node_memory.add([Entity(name="A"), Entity(name="B")])
g._edge_memory.add([Relation(source="A", target="B", relation_type="r")])
- g.edge_editor = FakeEditor(
+ g._edge_memory.llm_client = FakeChatModel(
Relation(source="A", target="B", relation_type="partner")
)
diff --git a/uv.lock b/uv.lock
index 65dc245..ba0d483 100644
--- a/uv.lock
+++ b/uv.lock
@@ -957,7 +957,7 @@ requires-dist = [
{ name = "langchain-google-genai", marker = "extra == 'google'", specifier = ">=2.1.0" },
{ name = "langchain-openai", specifier = ">=1.1.7" },
{ name = "mcp", marker = "extra == 'mcp'", specifier = ">=1.2.0,<3" },
- { name = "ontomem", specifier = ">=0.2.3" },
+ { name = "ontomem", specifier = ">=0.3.0" },
{ name = "ontosight", specifier = ">=0.1.8" },
{ name = "python-dotenv", specifier = ">=1.2.1" },
{ name = "rich", specifier = ">=13.7.0" },
@@ -1879,7 +1879,7 @@ wheels = [
[[package]]
name = "ontomem"
-version = "0.2.3"
+version = "0.3.0"
source = { registry = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/" }
dependencies = [
{ name = "faiss-cpu" },
@@ -1891,9 +1891,9 @@ dependencies = [
{ name = "python-dotenv" },
{ name = "structlog" },
]
-sdist = { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/99/b9/a689b4192121810a6e709d021042996097418efcb88535c00ad85e0a5d73/ontomem-0.2.3.tar.gz", hash = "sha256:7f5de6f9165781fdc4b58fe622335564b04ee672f449ad0d99958cdf0cb54ae2", size = 2535280, upload-time = "2026-03-18T02:50:09.318Z" }
+sdist = { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/99/b4/a76747d5dda4bcd0e107ee59aae4b89a952a35761a82408318eebf029b5b/ontomem-0.3.0.tar.gz", hash = "sha256:725405a54ea03380c7fa6a8c9a1badb561a23f971efbad5914f2e934bd9f511e", size = 2540504, upload-time = "2026-09-04T02:13:44.824Z" }
wheels = [
- { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/bb/55/6d892a20802f2e6ba1b4d35f18417a5fee4ec598a229ea613b5bcaf61983/ontomem-0.2.3-py3-none-any.whl", hash = "sha256:78d7704264bec34de08e80aa8403c9e10b81bb182b07c86f006dac68bf8721be", size = 39170, upload-time = "2026-03-18T02:50:07.692Z" },
+ { url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/7a/5e/0930f49541d5fa61f6420b08fd2f3d10af98811a7630e815508af59be8a0/ontomem-0.3.0-py3-none-any.whl", hash = "sha256:a03520bca3db0ff87db992c4aeff5c1df121ac3a25f1111519538e7148d8b1e5", size = 41883, upload-time = "2026-09-04T02:13:42.991Z" },
]
[[package]]