Source code for aj.plugins.packages.api

from jadi import interface


[docs]class Package(): """ Basic container class for package informations. """ def __init__(self, manager): self.manager = manager self.id = None self.name = None self.version = None self.description = None self.released = None self.is_installed = None self.is_upgradeable = None self.installed_version = None
[docs]@interface class PackageManager(): """ Abstract interface for all managers. Managers are defined in the directory managers. """ id = None name = None update_command = None def __init__(self, context): self.context = context
[docs] def list(self, query=None): raise NotImplementedError
[docs] def get_package(self, _id): raise NotImplementedError
[docs] def update_lists(self, progress_callback): raise NotImplementedError
[docs] def get_apply_cmd(self, selection): raise NotImplementedError

Comments

comments powered by Disqus