webstation-broker
DeveloperPython referenceimports

imports.ImportSpec

What an emulator accepts on one platform, and the rules its plan is checked against.

What an emulator accepts on one platform, and the rules its plan is checked against.

Attributes

attributekindstuple[KindSpec, ...]
= ()

The accepted kinds; empty means no imports.

attributestate_channelStateChannel
= 'none'

How the emulator takes states.

attributeprotectedtuple[str, ...]
= ()

fnmatch globs, relative to save_root, no member may land on.

attributecase_insensitive_destbool
= False

Whether destinations collide regardless of case.

attributeunit_depthint
= 0

Leading destination components that name one save unit.

attributeunit_requiresfrozenset[str]
= frozenset()

Names every unit must hold, relative to the unit.

attributeunit_subtreeOptional[str]
= None

The subtree whose destinations are grouped into units; None groups every one.

attributemax_component_bytesint
= 255

Longest path component the emulator's filesystem takes.

attributecard_subtreeOptional[str]
= None

The memory-card subtree, for discovery.

Functions

funckind(self, k) -> Optional[KindSpec]

Look up the spec for one kind.

paramself
paramkstr

The kind.

Returns

typing.Optional

Its KindSpec, or None when the kind is not accepted.

funcas_dict(self) -> dict[str, Any]

The spec as the discovery route reports it.

paramself

Returns

dict

kinds, state_channel and card_subtree.

func__init__(self, kinds=(), state_channel='none', protected=(), case_insensitive_dest=False, unit_depth=0, unit_requires=frozenset(), unit_subtree=None, max_component_bytes=255, card_subtree=None) -> None
paramself
paramkindstuple[KindSpec, ...]
= ()
paramstate_channelStateChannel
= 'none'
paramprotectedtuple[str, ...]
= ()
paramcase_insensitive_destbool
= False
paramunit_depthint
= 0
paramunit_requiresfrozenset[str]
= frozenset()
paramunit_subtreeOptional[str]
= None
parammax_component_bytesint
= 255
paramcard_subtreeOptional[str]
= None

Returns

None

On this page