PeerStore
The FileStore of another node, reached over the peer channel.
Functions
constructor__init__(call) -> NoneBind the store to a peer.
paramcallCallable[..., httpx.Response]call(method, path, headers=None, content=b""), which signs
and sends a request to the node that keeps the store.
Returns
Nonefunc_send(method, key, headers=None, body=b'') -> httpx.ResponseSend a store request to the peer and map its refusals.
parammethodstrparamkeystrparamheadersdict[str, str] | None= Noneparambodybytes= b''Returns
httpx.httpx.Responsefuncget(key) -> tuple[bytes, str] | NoneFetch an object from the peer.
paramkeystrReturns
tuple[bytes, str] | Nonefuncput(key, data, if_match=None, if_absent=False) -> strWrite an object on the peer.
paramkeystrparamdatabytesparamif_matchstr | None= Noneparamif_absentbool= FalseReturns
strfuncdelete(key, if_match=None) -> NoneDelete an object on the peer.
paramkeystrparamif_matchstr | None= NoneReturns
Nonefunclist(prefix='') -> dict[str, str]List the peer's objects.
paramprefixstr= ''Returns
dict[str, str]