Skip to main content

Storage-agnostic graph tools for FAIRSCAPE RO-Crates (condensation, evidence graphs, AI interpretation). Shared core for mds_python (server) and fairscape-cli.

Project description

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.portsGraphSource / ResultSink / TaskTracker / SoftwareFetcher Protocol definitions.
  • fairscape_graph_tools.condenserCondenser orchestrator.
  • fairscape_graph_tools.interpreterInterpreter orchestrator.
  • fairscape_graph_tools.evidence_graph_builderEvidenceGraphBuilder 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fairscape_graph_tools-0.1.0.tar.gz (51.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fairscape_graph_tools-0.1.0-py3-none-any.whl (55.8 kB view details)

Uploaded Python 3

File details

Details for the file fairscape_graph_tools-0.1.0.tar.gz.

File metadata

  • Download URL: fairscape_graph_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for fairscape_graph_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 427b179660ecb60390e2d36cae22872ae4f826f1dc89f6ffb3e42e24ec0ca6fe
MD5 f05ed7b1c0d9e31b9d4799f7a86e53dd
BLAKE2b-256 05c347e8f01e477c45e0b02e115734273d8ae065d0490538320df8847ea4e255

See more details on using hashes here.

File details

Details for the file fairscape_graph_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fairscape_graph_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6ab89fb82d9f2f22ef81a8fc65d1765f99ac8981357546a29efc166cf56d69
MD5 e66540bac344b75fa750ee9ef93ff707
BLAKE2b-256 9835dfee5f91cfea672c0cbc1284ff312debcbc8595dca6f8c6bfaa041138773

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page