inFairness.utils.misc module#

inFairness.utils.misc.initializer(func)[source]#

Automatically assigns the parameters.

>>> class process:
...     @initializer
...     def __init__(self, cmd, reachable=False, user='root'):
...         pass
>>> p = process('halt', True)
>>> p.cmd, p.reachable, p.user
('halt', True, 'root')