aito.v2.Client

aito.v2.Client

Version-neutral names. The prefixed ones remain as aliases.

Methods

aggregate(from_table, aggregate[, where])

compute aggregates over the rows a filter selects

batch(queries[, timeout])

run several queries in one request

branch_env(name)

branch a new environment off master

copy_schema(query)

copy a schema, via POST /schema/_copy

create_collection(name, columns)

create a v2 collection

delete_collection(name)

delete a collection or legacy table and its data

delete_entries(from_table, where)

delete the rows a filter selects

delete_env(name)

delete an environment

estimate(from_table, estimate[, where, select])

estimate the numeric value of a field

evaluate(query[, timeout])

run a held-out evaluation and return its metrics

get_operators()

the live operator inventory of this instance

get_schema([table])

the schema of the database, or of one table or collection

get_version()

the version of the Aito instance

list_envs()

the environments of this database

match(from_table, match[, where, select, ...])

rank the candidate values of a link field against some evidence

modify(operations)

apply table maintenance operations atomically

optimize(name)

rebuild a collection's index after a bulk load

predict(from_table, predict[, where, ...])

predict the values of a field, ranked by probability

query(query[, timeout])

run any query body against POST /_query

recommend(from_table, recommend, goal[, ...])

rank the values of a field by how well they achieve a goal

relate(from_table, relate[, where, select, ...])

find the statistical relationships between a condition and some fields

request(method, path[, query, timeout])

make a raw request to a v2 endpoint and return the parsed JSON

search(from_table[, where, select, ...])

retrieve matching rows

upload_entries(name, entries[, batch_size])

insert rows into a collection, in batches

Attributes

api_url

the base URL of the v2 API, including the environment segment

headers

the headers sent with every request