For this script, we import the axiom library and the datetime library. Notice, we have removed the previous argparse and csv imports are they are unnecessary here.
from __future__ import print_functionfrom axiom import *from datetime import datetime
Next, we must paste in the ProcessDailyOut class from the prior recipe, not including the write_csv or argument handling code, to use in this script. Since the current version of the API does not allow imports, we have to bundle all the code we need into a single script. To save pages and avoid redundancy, we will omit the code block in this section (though it exists as you'd expect in the code file bundled with this chapter).
The next class is the DailyOutArtifact, a subclass ...