예제 #1
0
파일: __init__.py 프로젝트: ayan-b/lml
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin("cuisine",
                                       "electrify.Boost",
                                       tags=["Portable Battery"])
예제 #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'
    )
)
예제 #3
0
파일: __init__.py 프로젝트: ayan-b/lml
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"])
예제 #4
0
 def add_a_plugin(self, submodule=None, **keywords):
     return PluginInfoChain.add_a_plugin(self,
                                         'chart',
                                         submodule=submodule,
                                         **keywords)
예제 #5
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin('cuisine',
                                       'roast.Roast',
                                       tags=['Peking Duck'])
예제 #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']
    )
)
예제 #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"],
    )
)
예제 #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"]
    )
)
예제 #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",
        ],
    ))
예제 #10
0
파일: __init__.py 프로젝트: antherkiv/lml
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'])
예제 #11
0
파일: __init__.py 프로젝트: antherkiv/lml
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin('cuisine',
                                       'electrify.Boost',
                                       tags=['Portable Battery'])
예제 #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"],
    )
)
예제 #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",
        ],
    )
)
예제 #14
0
from lml.plugin import PluginInfoChain


__test_plugins__ = PluginInfoChain(__name__).add_a_plugin(
    'test_io', 'x')
예제 #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'],
    ))
예제 #16
0
from lml.plugin import PluginInfoChain

__test_plugins__ = PluginInfoChain(__name__).add_a_plugin("test_io", "x")
예제 #17
0
파일: __init__.py 프로젝트: antherkiv/lml
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin('cuisine', 'cook.Cook', tags=['bread'])
예제 #18
0
from lml.plugin import PluginInfoChain

PluginInfoChain(__name__).add_a_plugin("cuisine",
                                       "roast.Roast",
                                       tags=["Peking Duck"])
예제 #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",
        ],
    ))