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= FalseWhether destinations collide regardless of case.
attributeunit_depthint= 0Leading destination components that name one save unit.
attributeunit_requiresfrozenset[str]= frozenset()Names every unit must hold, relative to the unit.
attributeunit_subtreeOptional[str]= NoneThe subtree whose destinations are grouped into units; None groups every one.
attributemax_component_bytesint= 255Longest path component the emulator's filesystem takes.
attributecard_subtreeOptional[str]= NoneThe memory-card subtree, for discovery.
Functions
funckind(self, k) -> Optional[KindSpec]Look up the spec for one kind.
paramselfparamkstrThe kind.
Returns
typing.OptionalIts KindSpec, or None when the kind is not accepted.
funcas_dict(self) -> dict[str, Any]The spec as the discovery route reports it.
paramselfReturns
dictkinds, 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) -> Noneparamselfparamkindstuple[KindSpec, ...]= ()paramstate_channelStateChannel= 'none'paramprotectedtuple[str, ...]= ()paramcase_insensitive_destbool= Falseparamunit_depthint= 0paramunit_requiresfrozenset[str]= frozenset()paramunit_subtreeOptional[str]= Noneparammax_component_bytesint= 255paramcard_subtreeOptional[str]= NoneReturns
None