11. Tracr Loader
Tracr Loader is a command line tool to upload diamond data to Tracr using the same CSV files as the Integration Tool.
Install and configure Tracr Loader
Setup the environment variables
Add Tracr Loader to the PATH
On Windows, open a Command Prompt and type:
setx PATH "%PATH%;C:\tools\tracr\"Declare the following variables
TRACR_TC_APPROVAL You must set this variable to yes. It means you accept and agree to the Terms and Conditions (https://www.tracr.com/legal/terms-and-conditions).
TRACR_SECRET Authentication Token. Please contact support@project-tracr.com for more details.
TRACR_URL The URL to the Data Integration Tool service. Please contact support@project-tracr.com for more details.
On Windows, open a Command Prompt and type:
setx TRACR_TC_APPROVAL "yes"
setx TRACR_SECRET "<TOKEN_PROVIDED_BY_TRACR>"
setx TRACR_URL "<URL_PROVIDED_BY_TRACR>"Usage
On Windows, open a Command Prompt and type:
tracer-loader.exe --integration <integration_type> --csv <full_path_of_csv_file> --batch <internal_reference> --session_id <session_id_of_a_previous_session>Command-line arguments
Required:
-i, --integration [rough,split,polished,transfer]
-c, --csv full path to the csv file
Optional:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-b BATCH, --batch BATCH
-s SESSION_ID, --session_id SESSION_ID
Upload new data with Tracr Loader
Prepare the data
Like the Data Integration Tool, create a CSV file to declare all the metadata of the diamonds to register.
Create the CSV file in a folder per session. The folder needs to contain all the additional files to be submitted (images, scans, reports, videos, and so on). You can organise the additional files in subfolders, or place all files together in the main folder.
Logs and output
Once a job is completed, the logs will be available in the subfolder tracr_output.
For example:
Recover a failed session
If Tracr Loader is interrupted when uploading files to Tracr, you can call Tracr Loader in recovery mode.
Last updated