Robosaur
Robosaur is a Typescript command-line scripting tool to help automating your process on Datasaur
Last updated
Robosaur is a Typescript command-line scripting tool to help automating your process on Datasaur
Last updated
Robosaur supports multiple commands. Each command needs a JSON file that will act as the configuration. For example, project creation will need information regarding what kind of projects that will be created.
Robosaur also manages a state file to keep track of the previous run commands so that it can continue the process accordingly without unwanted duplication. For example, Robosaur won't process projects that were successfully created before the next time. It will, however, process the failed and the new ones.
The for Robosaur is available publicly as an open-source project. Use the following command to clone the source code.
Robosaur is developed using TypeScript and Node.js. We highly recommend using to manage the versions.
v16.13
NPM v8 (should be bundled with Node.js)
Before running any Robosaur commands, get familiar with our and there are two things that you need to configure, i.e. OAuth credentials and specify the team ID.
Open /quickstart/{preferred-project-type}/config/config.json
.
and replace <DATASAUR_CLIENT_ID>
and <DATASAUR_CLIENT_SECRET>
config values.
Open . Click your profile on the top right corner and select the team that you want to use. Grab the team ID from the URL (https://app.datasaur.ai/teams/{team-id}/projects) and replace the <TEAM_ID>
values on your configuration.
Please see the next section to configure and customize more deeply about each commands.
As mentioned above, Robosaur needs a configuration file to determine the correct behavior when running a specific command. The required attributes that must be filled regardless of which command are these below.
datasaur
specifies the host, clientId, and clientSecret to authenticate the each call.
projectState
specifies where to store the state files. If Robosaur is used by multiple users, make sure to save the state at cloud object storage to keep it properly synced.
For each command, you need to fill the attributes accordingly.
specifies the project settings to be created.
specifies the behavior for exporting projects.
specifies the applying tags behavior.
specifies the behavior for splitting a file.
An in-depth breakdown of each attributes is available as a TypeScript file in .
Each source
attribute could be configured to local, AWS S3, Google Cloud Storage, or Azure Blob Storage. The detailed guide could be found .