weboob.tools.lrudict

class weboob.tools.lrudict.LimitedLRUDict(*args, **kwds)

Bases: weboob.tools.lrudict.LRUDict

dict to store only the N most recent items.

Initialize an ordered dictionary. The signature is the same as regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.

max_entries = 100
class weboob.tools.lrudict.LRUDict(*args, **kwds)

Bases: collections.OrderedDict

dict to store items in the order the keys were last added/fetched.

Initialize an ordered dictionary. The signature is the same as regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.