def main():
"""Generate the jumpmap.json with ESI."""
try:
all_systems = retry_get(ESI.Universe.get_universe_systems)
except NameError:
raise SystemExit(1)
num_systems = len(all_systems)
complete = 0
systems = {}
with ThreadPoolExecutor(max_workers=100) as executor:
for future in executor.map(system_get, all_systems):
complete += 1
system, result = future
systems[system] = result
print("{}/{} systems complete".format(complete, num_systems))
with open("jumpmap.json", "w") as openjumpmap:
openjumpmap.write(json.dumps(systems))
评论列表
文章目录