:py:mod:`dissect.eventlog.utils` ================================ .. py:module:: dissect.eventlog.utils Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.eventlog.utils.KeyValueCollection .. py:class:: KeyValueCollection Bases: :py:obj:`dict` A dictionary subclass that handles setting duplicate keys by appending an index number to the duplicate key. .. rubric:: Example >>> d = KeyValueCollection() >>> d["foo"] = "bar" >>> d["foo"] = "baz" # Duplicate key >>> d {'foo': 'bar', 'foo_1': 'baz'} .. py:attribute:: idx .. py:method:: __setitem__(key, value) Set self[key] to value.