pybitmessage.storage.filesystem module¶
Module for using filesystem (directory with files) for inventory storage
-
class
FilesystemInventory
[source]¶ Bases:
pybitmessage.storage.storage.InventoryStorage
Filesystem for inventory storage
-
topDir
= 'inventory'¶
-
objectDir
= 'objects'¶
-
metadataFilename
= 'metadata'¶
-
dataFilename
= 'data'¶
-
delHashId
(hashval)¶ Remove object from inventory
-
stream_list
()¶ Return list of streams
-
object_list
()¶ Return inventory vectors (hashes) from a directory
-
getData
(hashId)¶ Get object data
-
getMetadata
(hashId)¶ Get object metadata
-
by_type_and_tag
(objectType, tag)¶ Get a list of objects filtered by object type and tag
-
hashes_by_stream
(stream)¶ Return inventory vectors (hashes) for a stream
-
unexpired_hashes_by_stream
(stream)¶ Return unexpired hashes in the inventory for a particular stream
-
flush
()¶ Flush the inventory and create a new, empty one
-
clean
()¶ Clean out old items from the inventory
-