PYTHONPUBLIC API

fastsim.api.artifacts

Current public Python API for fastsim.api.artifacts; signatures are extracted directly from the vNext AST.

Source src/fastsim/api/artifacts.py

Public symbols 3

class

ArtifactDescriptor

L37
class ArtifactDescriptor(object)

Path-free catalog metadata for one plugin-owned artifact.

FieldTypeDefault
artifact_idstr
formatstr
sha256str
cache_hitbool
class

ResolvedArtifact

L57
class ResolvedArtifact(ArtifactDescriptor)

Artifact location returned only after an asynchronous digest check. The digest and byte count describe the content observed during ``resolve``. A returned path is a verified-at-resolution capability, not an open-file snapshot; callers that retain it remain inside FastSim's cooperative plugin trust boundary.

FieldTypeDefault
requested_uristr
resolved_uristr
local_pathstr
size_bytesint
class

ScopedArtifactReadService

L83
class ScopedArtifactReadService(Protocol)

Resolve only the artifacts compiled for one plugin instance. ``resolve`` revalidates the file digest outside the application loop before returning its path. Retaining a path after service revocation is outside the cooperative in-process plugin trust boundary.

service_id
ScopedArtifactReadService.service_id(self) -> str

No public docstring is provided in the current source.

descriptors
ScopedArtifactReadService.descriptors(self) -> tuple[ArtifactDescriptor, ...]

No public docstring is provided in the current source.

resolve
async ScopedArtifactReadService.resolve(self, artifact_id: str) -> ResolvedArtifact

No public docstring is provided in the current source.