Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit c8c9534

Browse files
authored
Update technique_mappings_to_csv.py
Add `tqdm` module to provide estimate of procedure completion
1 parent 92a6be2 commit c8c9534

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/technique_mappings_to_csv.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import stix2
66
import taxii2client
7+
import tqdm
78

89

910
def build_taxii_source(collection_name):
@@ -97,7 +98,7 @@ def do_mapping(ds, fieldnames, relationship_type, type_filter, source_name, sort
9798
all_attack_patterns = get_all_techniques(ds, source_name)
9899
writable_results = []
99100

100-
for attack_pattern in all_attack_patterns:
101+
for attack_pattern in tqdm.tqdm(all_attack_patterns, desc="parsing data for techniques"):
101102
# Grabs relationships for identified techniques
102103
relationships = filter_for_term_relationships(ds, relationship_type, attack_pattern.id)
103104

0 commit comments

Comments
 (0)