Skip to content

AitoDotAI/aito-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages