• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python IPlugin.IPlugin类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中yapsy.IPlugin.IPlugin的典型用法代码示例。如果您正苦于以下问题:Python IPlugin类的具体用法?Python IPlugin怎么用?Python IPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了IPlugin类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self):
     self.display_name = 'Action'
     self.popularity = 0
     self.cache = False
     self.fast = True
     self.action = False
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:7,代码来源:fa_action.py


示例2: activate

	def activate(self):
		"""
		On activation tell that this has been successfull.
		"""
		# get the automatic procedure from IPlugin
		IPlugin.activate(self)
		return
开发者ID:agustinhenze,项目名称:yapsy.debian,代码行数:7,代码来源:__init__.py


示例3: __init__

 def __init__(self):
     self.display_name = 'File Hasher'
     self.popularity = 0
     self.cache = True
     self.fast = False
     self.action = True
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:7,代码来源:fa_hash.py


示例4: __init__

 def __init__(self):
     self.display_name = 'Toggle Bookmark'
     self.popularity = 0
     self.cache = False
     self.fast = False
     self.action = False
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:7,代码来源:fa_togglestar.py


示例5: __init__

	def __init__(self):
		"""
		init
		"""
		# initialise parent class
		IPlugin.__init__(self)
		TEST_MESSAGE("Version 1.2a1")
开发者ID:eaglexmw,项目名称:codimension,代码行数:7,代码来源:VersionedPlugin12a1.py


示例6: deactivate

	def deactivate(self):
		"""
		On deactivation check that the 'activated' flag was on then
		tell everything's ok to the test procedure.
		"""
		IPlugin.deactivate(self)
		TEST_MESSAGE("Deactivated Version 1.2a1!")
开发者ID:eaglexmw,项目名称:codimension,代码行数:7,代码来源:VersionedPlugin12a1.py


示例7: __init__

    def __init__(self):
        IPlugin.__init__(self)
        self.command_priority = 1
        self.voice = None
        bind_port = 54321  # number
        host = get_ip_addresses()[0]  # we just grab the first one that isn't local
        while bind_port < 54329:
            bind = '{0}:{1}'.format(host, str(bind_port))
            try:
                self.env = Environment(bind=bind, with_subscribers=False)
                self.env.start()
                break
            except:
                bind_port += 1

        # retrieve or create device cache
        self.devices = mc.get('footman_wemo_cache')
        if not self.devices:
            self.env.discover(5)
            self.devices = self.env.list_switches()
            mc.set('footman_wemo_cache', self.devices)
        self.log = logging.getLogger(__name__)

        self.commands = {
            '.*turn (?P<command>on|off).*(?P<device>' + '|'.join([d.lower() for d in self.devices]) + ').*': [
                {
                    'command': self.command,
                    'args': (None, None,),
                    'kwargs': {},
                    'command_priority': 0,
                }
            ]
        }
开发者ID:maxvitek,项目名称:footman,代码行数:33,代码来源:wemo.py


示例8: __init__

 def __init__(self):
     self.display_name = 'Hex View'
     self.popularity = 3
     self.cache = True
     self.fast = False
     self.action = False
     self.icon = 'fa-file-code-o'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:fa_hexdump.py


示例9: __init__

 def __init__(self):
     self.display_name = 'Reg. View'
     self.popularity = 8
     self.cache = True
     self.fast = False
     self.action = False
     self.icon = 'fa-windows'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:fa_regview.py


示例10: __init__

 def __init__(self):
     self.display_name = 'Download'
     self.popularity = 1
     self.cache = True
     self.fast = False
     self.action = False
     self.icon = 'fa-download'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:download.py


示例11: __init__

 def __init__(self):
     self.display_name = 'PE File'
     self.popularity = 7
     self.cache = True
     self.fast = False
     self.action = False
     self.icon = 'fa-cog'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:fa_pefile.py


示例12: __init__

 def __init__(self):
     self.display_name = "PDF Info"
     self.popularity = 5
     self.cache = True
     self.fast = False
     self.action = False
     self.icon = "fa-file-pdf-o"
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:fa_pdfinfo.py


示例13: __init__

 def __init__(self):
     self.display_name = 'Exif Map'
     self.popularity = 0 # To enable change to 4
     self.cache = True
     self.fast = False
     self.action = False
     self.icon = 'fa-map-marker'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:fa_exifmap.py


示例14: __init__

 def __init__(self):
     self.display_name = 'File Analyze'
     self.popularity = 0
     self.cache = False
     self.fast = False
     self.action = False
     self.ignore_loader = ['preview', 'fa_timeline']
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:analyze.py


示例15: __init__

 def __init__(self):
     self.display_name = 'Strings'
     self.popularity = 4
     self.cache = False
     self.fast = False
     self.action = False
     self.icon = 'fa-file-text-o'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:fa_strings.py


示例16: activate

	def activate(self):
		"""
		On activation tell that this has been successfull.
		"""
		# get the automatic procedure from IPlugin
		IPlugin.activate(self)
		TEST_MESSAGE("Activated Version 1.2a1!")
		return
开发者ID:eaglexmw,项目名称:codimension,代码行数:8,代码来源:VersionedPlugin12a1.py


示例17: __init__

 def __init__(self):
     self.display_name = 'Image OCR'
     self.popularity = 3
     self.cache = False
     self.fast = False
     self.action = True
     self.icon = 'fa-file-image-o'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:8,代码来源:fa_image_ocr.py


示例18: __init__

 def __init__(self, name=None):
     """Initialize the Mastiff plugin class."""
     IPlugin.__init__(self)
     self.name = name
     self.prereq = None
     self.yara_filetype = None
     self.page_data = output.page()
     self.page_data.meta['filename'] = 'CHANGEME'
开发者ID:DeepuDon,项目名称:mastiff,代码行数:8,代码来源:categories.py


示例19: __init__

 def __init__(self):
     """Creates a nimbus plugin"""
     
     IPlugin.__init__(self)
     
     self.config = dict()
     self.nimbus = None
     
     self.thread = threads.NimbusThread(config=self.config, nimbus=self.nimbus)
开发者ID:andrewvaughan,项目名称:nimbus-pi,代码行数:9,代码来源:plugins.py


示例20: __init__

 def __init__(self):
     self.display_name = 'Log2Timeline'
     self.popularity = 0
     self.cache = False
     self._default_plugin = 'analyze/'
     self.fast = True
     self.action = False
     self.icon = 'fa-list'
     IPlugin.__init__(self)
开发者ID:maurermj08,项目名称:efetch,代码行数:9,代码来源:fa_timeline.py



注:本文中的yapsy.IPlugin.IPlugin类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python PluginFileLocator.PluginFileLocator类代码示例发布时间:2022-05-26
下一篇:
Python yappi.stop函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap