Exemplo n.º 1
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin("cuisine",
                                       "electrify.Boost",
                                       tags=["Portable Battery"])
Exemplo n.º 2
0
"""
    pyexcel_handsontable
    ~~~~~~~~~~~~~~~~~~~~~~~

    chart drawing plugin for pyexcel

    :copyright: (c) 2016-2017 by Onni Software Ltd.
    :license: New BSD License, see LICENSE for further details
"""
from lml.plugin import PluginInfoChain, PluginInfo


class MyPluginInfo(PluginInfo):

    def tags(self):
        file_types = self.file_types
        for file_type in file_types:
            yield file_type


PluginInfoChain(__name__).add_a_plugin_instance(
    MyPluginInfo(
        'renderer',
        '%s.handsontable.HandsonTable' % __name__,
        file_types=['handsontable.html'],
        stream_type='string'
    )
)
Exemplo n.º 3
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin(
    "cuisine", "fry.Fry",
    tags=["Fish and Chips"
          ]).add_a_plugin("cuisine",
                          "bake.Bake",
                          tags=["Cornish Scone", "Jacket Potato"])
Exemplo n.º 4
0
 def add_a_plugin(self, submodule=None, **keywords):
     return PluginInfoChain.add_a_plugin(self,
                                         'chart',
                                         submodule=submodule,
                                         **keywords)
Exemplo n.º 5
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin('cuisine',
                                       'roast.Roast',
                                       tags=['Peking Duck'])
Exemplo n.º 6
0
from lml.plugin import PluginInfo, PluginInfoChain


EXTENSION_TYPE = 'pyecharts_environment'


PluginInfoChain(__name__).add_a_plugin_instance(
    PluginInfo(
        EXTENSION_TYPE,
        '%s.environment.SnapshotEnvironment' % __name__,
        tags=['png', 'svg', 'jpeg', 'gif', 'pdf']
    )
)
Exemplo n.º 7
0
# flake8: noqa
import moban.constants as constants
from lml.plugin import PluginInfo, PluginInfoChain

from moban_handlebars._version import __author__, __version__

PluginInfoChain(__name__).add_a_plugin_instance(
    PluginInfo(
        constants.TEMPLATE_ENGINE_EXTENSION,
        "%s.engine.EngineHandlebars" % __name__,
        tags=["handlebars", "hbs"],
    )
)
Exemplo n.º 8
0
# flake8: noqa
from lml.plugin import PluginInfo, PluginInfoChain
import moban.constants as constants

from moban_template_toolkit._version import __version__
from moban_template_toolkit._version import __author__

PluginInfoChain(__name__).add_a_plugin_instance(
    PluginInfo(
        constants.TEMPLATE_ENGINE_EXTENSION,
        "%s.engine.EngineTemplateToolkit" % __name__,
        tags=["template_toolkit", "tt"]
    )
)
Exemplo n.º 9
0
# flake8: noqa
from lml.plugin import PluginInfo, PluginInfoChain
import moban.constants as constants

from moban_haml._version import __version__
from moban_haml._version import __author__

PluginInfoChain(__name__).add_a_plugin_instance(
    PluginInfo(
        constants.TEMPLATE_ENGINE_EXTENSION,
        "%s.engine.EngineHaml" % __name__,
        tags=[
            "Haml",
            "haml",
        ],
    ))
Exemplo n.º 10
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin(
    'cuisine', 'fry.Fry',
    tags=['Fish and Chips'
          ]).add_a_plugin('cuisine',
                          'bake.Bake',
                          tags=['Cornish Scone', 'Jacket Potato'])
Exemplo n.º 11
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin('cuisine',
                                       'electrify.Boost',
                                       tags=['Portable Battery'])
Exemplo n.º 12
0
from lml.plugin import PluginInfo, PluginInfoChain


EXTENSION_TYPE = "pyecharts_environment"


PluginInfoChain(__name__).add_a_plugin_instance(
    PluginInfo(
        EXTENSION_TYPE,
        "%s.environment.SnapshotEnvironment" % __name__,
        tags=["png", "svg", "jpeg", "gif", "pdf"],
    )
)
Exemplo n.º 13
0
# flake8: noqa
import moban.constants as constants
from lml.plugin import PluginInfo, PluginInfoChain

from moban_anyconfig._version import __author__, __version__

PluginInfoChain(__name__).add_a_plugin_instance(
    PluginInfo(
        constants.DATA_LOADER_EXTENSION,
        "%s.adapter.loads" % __name__,
        tags=[
            "toml",
            "pickle",
            "xml",
            "ini",
            "properties",
            "shellvars",
            "ion",
            "bson",
            "cbor",
            "configobj",
            "msgpack",
        ],
    )
)
Exemplo n.º 14
0
from lml.plugin import PluginInfoChain


__test_plugins__ = PluginInfoChain(__name__).add_a_plugin(
    'test_io', 'x')
Exemplo n.º 15
0
"""
    pyexcel_gantt
    ~~~~~~~~~~~~~~~~~~~~~~~

    draw gantt chart for pyexcel

    :copyright: (c) 2016-2017 by Onni Software Ltd.
    :license: New BSD License, see LICENSE for further details
"""
from lml.plugin import PluginInfoChain, PluginInfo


class MyPluginInfo(PluginInfo):
    def tags(self):
        file_types = self.file_types
        for file_type in file_types:
            yield file_type


PluginInfoChain(__name__).add_a_plugin_instance(
    MyPluginInfo(
        'renderer',
        '%s.gantt.Chart' % __name__,
        file_types=['gantt.html'],
    ))
Exemplo n.º 16
0
from lml.plugin import PluginInfoChain

__test_plugins__ = PluginInfoChain(__name__).add_a_plugin("test_io", "x")
Exemplo n.º 17
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin('cuisine', 'cook.Cook', tags=['bread'])
Exemplo n.º 18
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin("cuisine",
                                       "roast.Roast",
                                       tags=["Peking Duck"])
Exemplo n.º 19
0
# flake8: noqa
import moban.constants as constants
from lml.plugin import PluginInfo, PluginInfoChain

from moban_velocity._version import __author__, __version__

PluginInfoChain(__name__).add_a_plugin_instance(
    PluginInfo(
        constants.TEMPLATE_ENGINE_EXTENSION,
        "%s.engine.EngineVelocity" % __name__,
        tags=[
            "velocity",
            "vtl",
        ],
    ))