Skip to content

aea.helpers.ipfs.base

This module contains helper methods and classes for the 'aea' package.

chunks

chunks(data: Sized, size: int) -> Generator

Yield successivesize chunks from data.

IPFSHashOnly Objects

class IPFSHashOnly()

A helper class which allows construction of an IPFS hash without interacting with an IPFS daemon.

get

 | get(file_path: str) -> str

Get the IPFS hash for a single file.

Arguments:

  • file_path: the file path

Returns:

the ipfs hash