Skip to content

Instantly share code, notes, and snippets.

@sprzedwojski
Created January 25, 2019 14:24
Show Gist options
  • Save sprzedwojski/fadebb9376337ad8f1c103f3c014e606 to your computer and use it in GitHub Desktop.
Save sprzedwojski/fadebb9376337ad8f1c103f3c014e606 to your computer and use it in GitHub Desktop.
product_set_id = 'my-product-set-1'
product_set_create = CloudVisionProductSetCreateOperator(
product_set_id=product_set_id
# ...
)
for x in range(0, 1000):
product_create = CloudVisionProductCreateOperator(
product_id='my-product-{}'.format(x),
# ...
)
product_add_to_product_set = CloudVisionProductAddToProductSetOperator(
product_id='my-product-{}'.format(x),
product_set_id=product_set_id,
# ...
)
for y in range(0, 5):
ref_img_create = CloudVisionReferenceImageCreateOperator(
product_id='my-product-{}'.format(x),
# ...
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment