pkg.PackageCache

pkg.PackageCache provides an interface for the Altova Taxonomy Manager or Altova XMLSchema Manager. pkg.PackageCache provides the API to retrieve information about the installed and available packages. Use the commandline tools to installation or upgrade packages.

class pkg.PackageCache

Class methods

classmethod pkg.PackageCache.create_schema_cache(type cls, **kwargs)

Create an instance that provides access to the information provided by the Altova XMLSchema Manager. The optional keyword arguments specify options to load the cache, currently the boolean pkg.use_user_pkg_folder option is recognized.

classmethod pkg.PackageCache.create_taxonomy_cache(type cls, **kwargs)

Create an instance that provides access to the information provided by the Altova Taxonomy Manager. The optional keyword arguments specify options to load the cache, currently the boolean pkg.use_user_pkg_folder option is recognized.

Methods

pkg.PackageCache.available()

Return an iterator over the available packages.

pkg.PackageCache.installed()

Return an iterator over the installed packages.

pkg.PackageCache.is_null()

Returns True if the cache was initialized successfully, else False.

pkg.PackageCache.reload_catalog()

Force reload the XML catalogs if the package information was changed externally.

pkg.PackageCache.update_available(Package pkg: Package)

Return True if the package has updates available. Please use the commandline tools to upgrade packages.

Special methods

__eq__, __ge__, __gt__, __le__, __lt__, __ne__