app_dispatcher.py 374 B

1234567891011121314151617
  1. from consumer.connect import DataConsumer
  2. from consumer.credentials import getCredentials
  3. from model.product import Product
  4. print('Start')
  5. credentials = getCredentials()
  6. consumer = DataConsumer(credentials)
  7. rows = consumer.getProductSet()
  8. for r in rows:
  9. pro = Product(r)
  10. print('id = ', pro.id, '; name = ', pro.name)
  11. print('- - -')
  12. print('End')