trulens.core.utils.containers¶
trulens.core.utils.containers
¶
Container class utilities.
Classes¶
BlockingSet
¶
A set with max size that has blocking peek/get/add .
Functions¶
datetime_of_ns_timestamp
¶
Convert a nanosecond timestamp to a datetime.
ns_timestamp_of_datetime
¶
Convert a datetime to a nanosecond timestamp.
dict_set_with
¶
Add the key/values from dict2
to dict1
.
Mutates and returns dict1
.
dict_set_with_multikey
¶
Like dict_set_with
except the second dict can have tuples as keys in which
case all of the listed keys are set to the given value.