pybitmessage.storage.filesystem module

src/storage/filesystem.py

class FilesystemInventory[source]

Bases: pybitmessage.storage.storage.InventoryStorage

Module for using filesystem (directory with files) for inventory storage

by_type_and_tag(objectType, tag)

Get a list of objects filtered by object type and tag

clean()

Clean out old items from the inventory

dataFilename = 'data'
delHashId(hashval)

Remove object from inventory

flush()

Flush the inventory and create a new, empty one

getData(hashId)

Get object data

getMetadata(hashId)

Get object metadata

hashes_by_stream(stream)

Return inventory vectors (hashes) for a stream

metadataFilename = 'metadata'
objectDir = 'objects'
object_list()

Return inventory vectors (hashes) from a directory

stream_list()

Return list of streams

topDir = 'inventory'
unexpired_hashes_by_stream(stream)

Return unexpired hashes in the inventory for a particular stream