Powercontextsourcesadapters

SourceAdapter

Resolve one exact input class and read one concrete Source class.

Attributes

attributeinput_classtype[InputT]

The exact input class accepted by this adapter.

attributenamestr

The stable registration name for this adapter.

attributesource_classtype[SourceT]

The exact Source class produced and read by this adapter.

Functions

funcresolve(value) -> SourceT

Resolve an adapter-native value without changing a catalog.

paramvalueInputT

Returns

powercontext.sources.adapters.SourceT
funcread(source) -> ValueT_co

Read the adapter-native value described by a Source.

paramsourceSourceT

Returns

powercontext.sources.adapters.ValueT_co

On this page