utils – Utilities¶
This module contains a handful of utility classes to make dealing with things like creating message more simple.
-
eventmq.utils.random_characters()¶ Returns: some random characters of a specified length Return type: str
-
eventmq.utils.tuplify(v)¶ Recursively convert lists to tuples.
Parameters: v (object) – any value of interest
-
eventmq.utils.zero_index_cmp(a, b)¶ same as
cmpbut using the 0-index in a list as the compare value. Used when sorting the values inrouter.Router.queues.