@@ -585,7 +585,7 @@ def connect(store_socket_name, manager_socket_name, int release_delay,
585585 The maximum number of objects that the client will keep and
586586 delay releasing (for caching reasons).
587587 num_retries : int, default -1
588- Number of times tor ty to connect to plasma store. Default value of -1
588+ Number of times to try to connect to plasma store. Default value of -1
589589 uses the default (50)
590590 """
591591 cdef PlasmaClient result = PlasmaClient()
@@ -599,6 +599,23 @@ def connect(store_socket_name, manager_socket_name, int release_delay,
599599 return result
600600
601601def put (PlasmaClient client , value , object_id = None ):
602+ """
603+ Store a Python value into the object store.
604+
605+ Parameters
606+ ----------
607+ client : PlasmaClient
608+ The client connected to the object store we put the value in.
609+ value : object
610+ A Python object to store.
611+ object_id : ObjectID, default None
612+ If this is provided, the specified object ID will be used to refer
613+ to the object.
614+
615+ Returns
616+ -------
617+ The object ID associated to the Python object.
618+ """
602619 cdef ObjectID id = object_id if object_id else ObjectID.from_random()
603620 cdef SerializedPyObject serialized = pyarrow.serialize(value)
604621 buffer = client.create(id , serialized.total_bytes)
@@ -609,6 +626,26 @@ def put(PlasmaClient client, value, object_id=None):
609626 return id
610627
611628def get (PlasmaClient client , object_ids , timeout_ms = - 1 ):
629+ """
630+ Get one or more Python values from the object store.
631+
632+ Parameters
633+ ----------
634+ client : PlasmaClient
635+ The client connected to the object store we get objects from.
636+ object_ids : list
637+ The list of object IDs associated to the values we get from the store.
638+ timeout_ms : int, default -1
639+ The number of milliseconds that the get call should block before
640+ timing out and returning. Pass -1 if the call should block and 0
641+ if the call should return immediately.
642+
643+ Returns
644+ -------
645+ list
646+ List of Python values for the data associated with the object_ids
647+ and ObjectNotAvailable if the object was not available.
648+ """
612649 results = []
613650 buffers = client.get(object_ids, timeout_ms)
614651 for i in range (len (object_ids)):
0 commit comments