import os
import sys
from utils.collection_factory import CollectionFactory, Collection
from utils import load_config_from_file, publish
from utils.dependency_injection import provider
from config.rabbitmq_config import RabbitmqConfig

provider.assemble(RabbitmqConfig)

blueprint = load_config_from_file('./assets/blueprint-template.json')
p_collect = CollectionFactory().use_blueprint(blueprint).construct_collect_data()
p_collect.run()