Example #1
0
 def publish_project(self, definition, identifer, username, pwd):
     """
     prepare and render the project.
     :param name: the name of the project
     :return: None
     """
     renderer = Publisher(username, pwd)
     result = renderer.run(definition)
     #self.store_project(user, name, definition, identifier)
     return result
Example #2
0
def publisher_agent(shared_list,Info_List,State_Other_List,receive_index,if_save,if_radar,lock):
    publisher_=Publisher(shared_list,Info_List,State_Other_List,receive_index,if_save,if_radar,lock)
    time.sleep(0.5)
    publisher_.run()
Example #3
0
async def main():
    hub = PubSubHub(subscription_endpoint=SUBSCRIPTION_ENDPOINT,
                    publication_endpoint=PUBLICATION_ENDPOINT)
    subscriber = Subscriber(SUBSCRIPTION_ENDPOINT, topics)
    publisher = Publisher(topics, PUBLICATION_ENDPOINT)
    await asyncio.gather(hub.run(), subscriber.run(), publisher.run())