def random_port():
    sock = socket.socket()
    sock.bind(('', 0))
    port = sock.getsockname()[1]
    sock.close()
    return port

# ISO8601 for strptime with/without milliseconds
get a single random port
dataset/ETHPy150Open jupyterhub/jupyterhub/jupyterhub/utils.py/random_port