def parse_ipv4(address):
    raw = struct.pack('I', address)
    octets = struct.unpack('BBBB', raw)[::-1]
    ipv4 = b'.'.join([('%d' % o).encode('ascii') for o in bytearray(octets)])
    return ipv4
Given a type creates a TypeConstraint instance parameterized by the type.
dataset/ETHPy150Open kisom/pypcapfile/pcapfile/protocols/network/ip.py/parse_ipv4--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/DataflowPythonSDK/google/cloud/dataflow/typehints/typehints.py/CompositeTypeHint.__getitem___