'create connection to api server'

def connect(self):

    token = os.environ.get('PACKET_API_TOKEN')
    if (token is None):
        raise Exception('Error    reading    token    from    environment    (PACKET_API_TOKEN)!')
    manager = packet.Manager(auth_token=token)
    return manager
