# -*- coding: utf-8 -*-
# Copyright (c) 2017-2014 Manuel Schneider
from pathlib import Path
from albert import *
md_iid = "3.0"
md_version = "2.0"
md_name = "Python Eval"
md_description = "Evaluate Python code"
md_license = "BSD-3"
md_url = "https://github.com/albertlauncher/python/tree/main/python_eval"
md_authors = "@manuelschneid3r"
class Plugin(PluginInstance, TriggerQueryHandler):
def __init__(self):
PluginInstance.__init__(self)
TriggerQueryHandler.__init__(self)
self.iconUrls = [f"file:{Path(__file__).parent}/python.svg"]
def synopsis(self, query):
return "