def entity_import(args):
    """ Upload an entity loadfile. """
    project = args.project
    workspace = args.workspace
    chunk_size = args.chunk_size

    with open(args.tsvfile) as tsvf:
        headerline = tsvf.readline().strip()
        entity_data = [l.rstrip('\n') for l in tsvf]

    return _batch_load(project, workspace, headerline, entity_data, chunk_size)
def entity_import ( args ) : project = args . project workspace = args . workspace chunk_size = args . chunk_size with open ( args . tsvfile ) as tsvf : headerline = tsvf . readline ( ) . strip ( ) entity_data = [ l . rstrip ( '\n' ) for l in tsvf ] return _batch_load ( project , workspace , headerline , entity_data , chunk_size )
Upload an entity loadfile.