Skip to content

contextcraft.Analysis

Python
Analysis(config: Config) -> None

Bases: Handle

Native snapshot. metadata() exposes raw paths, never source contents.

Functions:

  • close – Release native resources, with repeated calls safely ignored.
  • metadata – Return Python-owned file, graph, project, and resolution metadata.

Attributes:

  • closed (bool) – Whether native resources have been released.

contextcraft.Analysis.close

Python
close() -> None

Release native resources, with repeated calls safely ignored.

contextcraft.Analysis.closed

Python
closed: bool

Whether native resources have been released.

contextcraft.Analysis.metadata

Python
metadata() -> AnalysisMetadata

Return Python-owned file, graph, project, and resolution metadata.

Paths belong to the raw analysis and do not receive artifact redaction. The returned values remain valid after this analysis closes.