# Path: tailor/hardware/arduino/protocol/commands.py



from .commands import command_lookup, command_names
    def keys(self):
        return self.__keys_order__

    def values(self):
        return list(self.values())

    def items(self):
        return list(self.items())

    def __repr__(self):
        return "%s(%s)" % (self.__class__.__name__, dict.__repr__(self))


def mappp(list, dict):
    return [dict[i] for i in list]


def mapppp(values, sig):
    return {k: values[i] for i, k in enumerate(sig)}


def make_container(name, sig, values):
    return Container(name=name, **mapppp(values, sig))


# generator
def parse(handler):
    while 1:
        byte = yield


# Path: tailor/hardware/arduino/protocol/commands.py



# Path: tailor/hardware/arduino/protocol/factory.py
from .commands import command_lookup, command_names

    def keys(self):
        return self.__keys_order__

    def values(self):
        return list(self.values())

    def items(self):
        return list(self.items())

    def __repr__(self):
        return "%s(%s)" % (self.__class__.__name__, dict.__repr__(self))


def mappp(list, dict):
    return [dict[i] for i in list]


def mapppp(values, sig):
    return {k: values[i] for i, k in enumerate(sig)}


def make_container(name, sig, values):
    return Container(name=name, **mapppp(values, sig))


# generator
def parse(handler):
    while 1:
        byte = yield


        if byte in command_names: