The association Module

class moments.association.Association[source]

Object to hold dict of tags as keys, and the list of times as items

frequency_list()[source]

make a list of all unique items and how many times that item shows up in the journal

return a list of tuples: [ (freq, item), ... ]

frequent_first()[source]

return a list of the keys... most frequent first

key_has_item(key, item)[source]

look at only one association

will not fail if key does not exist.

keys_with_item(item)[source]

return a list of keys that have that item

remove(item)[source]

remove all instances of item from all associations

This Page