Package API¶
Packages high-level API.
-
class
package_api.
PackageAPI
(sdk)¶ API for the Package entities.
This class provides a method for pulling new versions of packages (knowledge models). Other methods might be added in the future.
Example usage:
api = PackageAPI(...) # Pull specified packages from the Data Stewardship Registry api.pull_packages(['dsw:package1:2.2.0', 'dsw:package2:1.0.0'])
-
pull_packages
(ids)¶ Pulls given packages from the Data Stewardship Registry, so they become available in the DSW instance.
- Parameters
ids (List[str]) – IDs of the packages you want to pull form the registry
-
update_packages
(ids=None)¶ - Parameters
ids (Optional[List[str]]) –
-
model_class
: Type[dsw_sdk.high_level_api.models.model.Model]¶
-