Skip to content

autonomy.cli.helpers.ipfs_hash

IPFS hash helpers.

load_configuration

def load_configuration(package_type: PackageType,
                       package_path: Path) -> PackageConfiguration

Load a configuration, knowing the type and the path to the package root.

Arguments:

  • package_type: the package type.
  • package_path: the path to the package root.

Returns:

the configuration object.

update_hashes

def update_hashes(
    packages_dir: Path,
    no_wrap: bool = False,
    vendor: Optional[str] = None,
    config_loader: Callable[[PackageType, Path],
                            PackageConfiguration] = load_configuration
) -> int

Process all AEA packages, update fingerprint, and update packages.json file.