tier.require

tier.require(kind)

The plugin filling kind, or :class:TierUnavailable.

Also checks the component’s contract_version against :data:CONTRACT_VERSION, so a stale private build is refused with a sentence rather than failing inside a trace.

Returns

Name Type Description
The Any class:~cadjoint.plugins.Plugin (a
Any class:~cadjoint.plugins.PythonPlugin for the private kinds).

Raises

Name Type Description
TierUnavailable When the kind is not registered, its provider cannot be imported, or it was built for another contract.