gpf.gpf_instance_plugin package
Submodules
gpf.gpf_instance_plugin.gpf_instance_context_plugin module
- class gpf.gpf_instance_plugin.gpf_instance_context_plugin.GPFInstanceContextProvider[source]
Bases:
GenomicContextProviderDefines GPFInstance genomic context provider.
- class gpf.gpf_instance_plugin.gpf_instance_context_plugin.GPFInstanceGenomicContext(gpf_instance: Any)[source]
Bases:
GenomicContextDefines GPFInstance genomic context.
- get_context_keys() set[str][source]
Report all keys exposed by this context.
Returns
- set[str]
The complete collection of keys under which objects can be retrieved. May be empty if the context holds no resources.
- get_context_object(key: str) Any | None[source]
Retrieve a context object by its key.
Parameters
- key
The string identifier for the desired resource.
Returns
- Any | None
The stored object if the key is present, otherwise
None.
Notes
Implementations must return
Nonewhen the key is absent rather than raisingKeyError. This convention allows callers to safely query for optional resources.