download#
这个模块负责从 GitHub release 上下载数据文件.
- acore_db_app.update.common.download.download_file(file_name: str, version: str = '0.2.4') Path[source]#
尝试下载文件. 如果文件已经存在, 则不会重复下载 (因为 release 是 immutable 的), 如果存在了, 内容就肯定是一样的.
- class acore_db_app.update.common.download.FileEnum(value)[source]#
- spell_csv_gz: this file is from the Spell.dbc file, we use MyDbcEditor
to convert it to csv format and manually compress it with gzip.
- recipe_json_gz: this file is generated by https://github.com/MacHu-GWU/acore_db_app-project/blob/main/db_update/common/debug_craft_spell_recipe.py,
See: -
acore_db_app.update.common.craft_spell_recipe.extract_recipe(): -acore_db_app.update.common.craft_spell_recipe.Recipe.dump_many():
- final_price_table_tsv: this file is generated by https://github.com/MacHu-GWU/acore_db_app-project/blob/main/db_update/cpi/debug_cpi.py,
See
acore_db_app.update.projects.cpi.CpiWorkflow.generate_final_price_table()