Metadata-Version: 2.4
Name: fairscape-graph-tools
Version: 0.1.0
Summary: Storage-agnostic graph tools for FAIRSCAPE RO-Crates (condensation, evidence graphs, AI interpretation). Shared core for mds_python (server) and fairscape-cli.
Author-email: Justin Niestroy <jniestroy@gmail.com>, Max Levinson <mal8ch@virginia.edu>, Tim Clark <twc8q@virginia.edu>
License: Copyright 2023 THE RECTOR AND VISITORS OF THE UNIVERSITY OF VIRGINIA
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pydantic>=2.5.1
Requires-Dist: pydantic-ai>=0.1.0
Requires-Dist: httpx>=0.28.1
Requires-Dist: fairscape_models>=1.1.4
Dynamic: license-file

# fairscape-graph-tools

Storage-agnostic core for FAIRSCAPE RO-Crate graph tools — provenance-graph
condensation, evidence graph construction, and AI-driven interpretation.

Both `mds_python` (FastAPI server, MongoDB-backed) and `fairscape-cli` (local
RO-Crate tool) consume this package and supply their own adapters for
entity lookup, result persistence, progress tracking, and software fetching.

Contents of this package (by module):

- `fairscape_graph_tools.models` — Pydantic models for `AnnotatedComputation`,
  `AnnotatedEvidenceGraph`, `EvidenceGraph` (plus assumption / error /
  evidence types).
- `fairscape_graph_tools.pipeline.graph_utils` — `@graph` traversal helpers
  (type detection, DAG ordering, ARK ID matching).
- `fairscape_graph_tools.pipeline.condense` — provenance-graph condensation
  (`condense_graph` for RO-Crate-level, `condense_evidence_graph_cache` for
  evidence-graph-level).
- `fairscape_graph_tools.pipeline.stats` — dataset statistics prompt formatting.
- `fairscape_graph_tools.pipeline.github` — GitHub source-code fetching.
- `fairscape_graph_tools.prompts` — system + synthesis prompts per audience.
- `fairscape_graph_tools.runtime` — async rate limiter, retry helper,
  Celery-safe event loop.
- `fairscape_graph_tools.ports` — `GraphSource` / `ResultSink` / `TaskTracker`
  / `SoftwareFetcher` Protocol definitions.
- `fairscape_graph_tools.condenser` — `Condenser` orchestrator.
- `fairscape_graph_tools.interpreter` — `Interpreter` orchestrator.
- `fairscape_graph_tools.evidence_graph_builder` — `EvidenceGraphBuilder`
  orchestrator.

This package was renamed from `fairscape_interpret` on 2026-04-21 to reflect
the broader scope beyond AI interpretation. See `MIGRATION.md` and
`EVIDENCE_GRAPH_MIGRATION.md` for migration history and pending work.
