Skip to content

Commit d93fbc9

Browse files
committed
constants_generator: display progress
1 parent 940751b commit d93fbc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python_cli/sniffle/advdata/constants_generator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,26 @@ def pretty_print_dict(d, key_digits=4):
6767
return "\n".join(lines)
6868

6969
def main():
70+
print("Fetching company identifiers")
7071
comp_ids_yaml = fetch_assigned_numbers("company_identifiers/company_identifiers.yaml")
7172
company_identifiers = {}
7273
for c in decode_yaml(comp_ids_yaml)["company_identifiers"]:
7374
company_identifiers[c["value"]] = c["name"]
7475

76+
print("Fetching AD types")
7577
ad_types_yaml = fetch_assigned_numbers("core/ad_types.yaml")
7678
ad_types = {}
7779
for t in decode_yaml(ad_types_yaml)["ad_types"]:
7880
ad_types[t["value"]] = t["name"]
7981

82+
print("Fetching service UUIDs")
8083
service_uuids_yaml = fetch_assigned_numbers("uuids/service_uuids.yaml")
8184
service_uuids16 = {}
8285
for u in decode_yaml(service_uuids_yaml)["uuids"]:
8386
service_uuids16[u["uuid"]] = u["name"]
8487

8588
constants_file_path = os.path.join(os.path.dirname(__file__), "constants.py")
89+
print("Writing", constants_file_path)
8690
with open(constants_file_path, 'w') as f:
8791
f.write("# Auto generated by constants_generator.py\n\n")
8892
f.write("company_identifiers = ")

0 commit comments

Comments
 (0)