mima_demo.mima_list_promΒΆ

Sample to list all the prom index

""" Sample to list all the prom index
"""
import datetime
from irfpy.mima import rawdata

def main():
    dc = rawdata.DataCenterCount3d()
    t0 = datetime.datetime(2000, 1, 1)
    t1 = datetime.datetime(2020, 1, 1)

    for t, d in dc.iter(t0, t1):
        print(t, d.hk.promsection)



if __name__ == "__main__":
    main()