Module ammcore.pkg.provider¶
Source of packages.
Index¶
Class
An abstract interface for package provider. |
Class¶
-
class ammcore.pkg.provider.Provider :
ammcore.class.Base¶ An abstract interface for package provider.
-
classmethod New(self: <T:
ammcore.class.Base>) <T:ammcore.class.Base>¶ Constructor.
-
getLocalPackages(self:
ammcore.pkg.provider.Provider) versions:ammcore.pkg.providers.local.LocalPackageVersion[]¶ Get all locally installed packages.
- Returns:
versions (
ammcore.pkg.providers.local.LocalPackageVersion[]) – locally installed packages.
-
findPackageVersions(self:
ammcore.pkg.provider.Provider, name:string, includeRemotePackages:boolean) versions:ammcore.pkg.package.PackageVersion[], found:boolean¶ Get versions of a package and a boolean indicating that package was found.
- Parameters:
name (
string) – package name.includeRemotePackages (
boolean) – allow package to fetch packages from github or other remote source.
- Returns:
versions (
ammcore.pkg.package.PackageVersion[]) – found versions, could be an empty array.found (
boolean) –trueif the package was successfully resolved by this provider.
-
finalize(self:
ammcore.pkg.provider.Provider)¶ Write all caches to disk.
-
classmethod New(self: <T: