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.2.0.tar.gz (53.1 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.2.0-py3-none-any.whl (57.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fairscape_graph_tools-0.2.0.tar.gz
  • Upload date:
  • Size: 53.1 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.2.0.tar.gz
Algorithm Hash digest
SHA256 39e4300bcfd2ce032db3de7d830ec501c4a4eda16c6d25f80bbb79f0467b102b
MD5 66cf14233fb9e54580347e3373147492
BLAKE2b-256 e9ff390303fb73fc24a4050f3f6671b25cbf86e5570deb34d736c4d25f12ff1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fairscape_graph_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03bba285f475176186bcb5e2848d6154ca4cf56cf5b2ccca53165d6cd6f52368
MD5 8592d6cd37e97a713279ed5152234ef9
BLAKE2b-256 64f7939b4b3a719c84f1360288ea9fd519f5f7a82c072b1773d149afd32ef194

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