import ipaddress


def parse_ip_and_port(input):
    """
    Parse IP and Port number combo to a dictionary::

        1.1.1.1:2000

    to:

    .. code-block:: python

        {'ip': IPv4Address('1.1.1.1'), 'port': 2000}

    :param string input: IP and port

    :return: dictionary with keys ``ip`` and ``port``
    """
    ip_port_dict = {}
    address, port = input.split(':')
    ip_port_dict['ip'] = ipaddress.ip_address(address)
    ip_port_dict['port'] = port
    return ip_port_dict