cfxdb.xbrmm.ipfs_file

Classes

IPFSFile

Record of downloaded files from Infura

IPFSFiles

Persisted IPFS files download log

_IPFSFileGen

Module Contents

class IPFSFile(from_fbs=None)[source]

Record of downloaded files from Infura

__str__()[source]
_downloaded = None[source]
_errored_at = None[source]
_file_hash = None[source]
_from_fbs = None[source]
_retries = None[source]
build(builder)[source]
static cast(buf)[source]
property downloaded: bool[source]

Whether the file for the given IPFS has was downloaded

property errored_at: numpy.datetime64[source]

Time of last time when downloaded errorred.

property file_hash: str[source]

IPFS Multihash pointing to a RDF/Turtle file

marshal()[source]
property retries: int[source]

Number of retries to download the file from Infura

class IPFSFiles(slot=None, compress=None, build=None, cast=None)[source]

Bases: zlmdb.MapStringFlatBuffers

Persisted IPFS files download log

Map zlmdb.MapStringFlatBuffers from file_hash to cfxdb.xbrmm.IPFSFile

class _IPFSFileGen[source]

Bases: cfxdb.gen.xbrmm.IPFSFile.IPFSFile

classmethod GetRootAsIPFSFile(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.