Did I find the right examples for you? yes no

All Samples(13)  |  Call(13)  |  Derive(0)  |  Import(0)
Returns the first format plugin whose attributes match kwargs.

For example::

    get_plugin(extension="scratch14")

Will return the :class:`KurtPlugin` whose :attr:`extension
<KurtPlugin.extension>` attribute is ``"scratch14"``.

The :attr:`name <KurtPlugin.name>` is used as the ``format`` parameter(more...)

src/k/u/kurt-2.0.5/kurt/__init__.py   kurt(Download)
            (name, extension) = os.path.splitext(filename)
            if format is None:
                plugin = kurt.plugin.Kurt.get_plugin(extension=extension)
                if not plugin:
                    raise UnknownFormat(extension)
            fp = open(path, "rb")
        else:
            fp = path
            assert format, "Format is required"
            plugin = kurt.plugin.Kurt.get_plugin(format)
 
        """
        self._plugin = kurt.plugin.Kurt.get_plugin(format)
        return list(self._normalize())
 
            if path: # only if not using self.path
                try:
                    plugin = kurt.plugin.Kurt.get_plugin(extension=extension)
                except ValueError:
                    pass
        """
        if plugin:
            plugin = kurt.plugin.Kurt.get_plugin(plugin)
            if plugin.name in self._plugins:
                return self._plugins[plugin.name]

src/k/u/kurt-HEAD/kurt/__init__.py   kurt(Download)
            (name, extension) = os.path.splitext(filename)
            if format is None:
                plugin = kurt.plugin.Kurt.get_plugin(extension=extension)
                if not plugin:
                    raise UnknownFormat(extension)
            fp = open(path, "rb")
        else:
            fp = path
            assert format, "Format is required"
            plugin = kurt.plugin.Kurt.get_plugin(format)
 
        """
        self._plugin = kurt.plugin.Kurt.get_plugin(format)
        return list(self._normalize())
 
            if path: # only if not using self.path
                try:
                    plugin = kurt.plugin.Kurt.get_plugin(extension=extension)
                except ValueError:
                    pass
        """
        if plugin:
            plugin = kurt.plugin.Kurt.get_plugin(plugin)
            if plugin.name in self._plugins:
                return self._plugins[plugin.name]

src/k/u/kurt-HEAD/src/blocks2raw.py   kurt(Download)
def scratchblocks2_definitions(plugin):
    plugin = kurt.plugin.Kurt.get_plugin(plugin)
    plugin_blocks = sorted(plugin.blocks, key=lambda b: b and b.category)
 
    done_block_text = set()