title: PyMongo Aggregation create pipline from string
body: <p>I am looking for a possibility to store the aggregation command e.g. in a text file to load that by python/pymongo and execute that.</p>
  
  <p>Currently, I find a lot of examples using the pipe line in pymongo. But how do I to handle that when I want to outsource the aggregation command in a text file outside my pymongo code.</p>
  
  <p>Hope you know what I mean :-).</p>
  
  <p>Thx in advance for your help!</p>
  
  <p>tom</p>