Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

NOTE: This repository is not actively maintained. These features are covered by the Aito Python SDK and CLI.

CircleCI

Aito tools

Collection of scripts and tools useful for Aito users.

upload-file.sh

Uploads a single ndjson file to an Aito environment. Executes a file upload flow. Requires jq command-line tool.

Example usage:

In the example we upload products to Aito.

  1. Create a schema to the Aito database

    curl -H "x-api-key: $API_KEY" -d@schema.json -X POST "https://my-aito-env.api.aito.ai/api/v1/schema"

    See the example schema.json contents.

  2. Run upload file script

    ./upload-file.sh products.ndjson https://my-aito-env.api.aito.ai

    This would upload products.ndjson to a products table in https://my-aito-env.api.aito.ai. See the example products.ndjson contents.

copy-table.sh

Outputs all objects from Aito table to stdout as ndjson. Requires jq command-line tool. The table is paginated through with the Search endpoint.

Example usage:

export API_KEY=YOUR_KEY
copy-table.sh your-env-name table > table.ndjson

About

Collection of public tools and scripts

Resources

License

Releases

No releases published

Packages

No packages published

Languages