Skip to content

Export

Artifact export: STEP, STL, BOM, graph and manifest.

function in machinewright.export_service

def apply_linux_process_limits(
limits: ExportLimits
) -> None

Apply hard limits to the current dedicated worker process on Linux.

class in machinewright.export_service

class ArtifactResult(Contract)

No description yet.

class in machinewright.export_service

class CancellationToken

No description yet.

def cancel() -> None

function in machinewright.export_service

def export_artifacts(
assembly: AssemblyDefinition | ResolvedDesign,
output_directory: str | Path,
request: ExportRequest | None = None,
progress: Callable[[ExportProgress], None] | None = None,
cancellation: CancellationToken | None = None
) -> ExportResult

Export requested artifacts, cleaning partial output on any failure.

Memory and CPU limits are applied to the current process when requested, so callers should set them only in a dedicated Linux worker process. Elapsed time, part count, cancellation, and output bytes are enforced directly. A full bundle omits the print layout when there are no printed parts.

class in machinewright.export_service

class ExportFormat(StrEnum)

No description yet.

class in machinewright.export_service

class ExportLimits(Contract)

No description yet.

class in machinewright.export_service

class ExportProgress(Contract)

No description yet.

class in machinewright.export_service

class ExportRequest(Contract)

No description yet.

class in machinewright.export_service

class ExportResult(Contract)

No description yet.