Upload a dataset. See, Uploading a dataset to the project.
import sys
from utils.rc.client.requests import Requests
from utils.rc.client.auth import AuthClient
from utils.rc.dtos.project import Project
from utils.rc.dtos.transform import Transform
from utils.rc.dtos.template_v2 import TemplateV2, TemplateTransformV2
import logging
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO)
Requests.setRootHost("http://staging.dev.rapidcanvas.net/api/")
AuthClient.setToken(token="") # you can find your token in RapidCanvas UI under tools/token
Note: If you are launching the Notebook from the UI, you do not have to pass the token.
The below is an example to add a transform/template called, "Add Prefix" to the dataset and run this transform on the dataset to generate the output.
INFO:Creating new recipe
INFO:Adding new transform
INFO:Transform added Successfully
INFO:Started running
INFO:You can look at the progress on UI at https://test.dev.rapidcanvas.net/#/projects/bd45aabe-891e-4588-9056-0171158e1e44
INFO:No errors and warnings found
Add another recipe to the dataset
You must use the following code to fetch the output dataset of the preceding recipe to use this as an input for another recipe.