etlutils.datafiles¶
etlutils.datafiles contains methods useful for producing and consuming data for structured data
Functions
dump_to_daily_json_file (directory, year, …) |
saves data to a daily file stored in JSON |
dump_to_monthly_json_file (directory, year, …) |
saves data to a monthly file stored in JSON |
dump_to_yearly_json_file (directory, year, data) |
saves data to a yearly file stored in JSON |
find_newest_saved_month (directory, end_year) |
finds the last saved file for data stored by month |
get_daily_file_path (directory, datatype, …) |
puts together a path to a file for data that is saved by day |
get_monthly_file_path (directory, datatype, …) |
puts together a path to a file for data that is saved by month |
get_yearly_file_path (directory, datatype, year) |
puts together a path to a file for data that is saved by year |