From fc45de4d7e22bc4313ea8005c3f544f88c6d770b Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Sat, 28 Aug 2021 19:00:40 +0200 Subject: [PATCH] Add the check of the NIST files (Readme and example script) --- clean_nist_files/Readme.md | 10 ++++++++++ clean_nist_files/check_nist_file.py | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 clean_nist_files/check_nist_file.py diff --git a/clean_nist_files/Readme.md b/clean_nist_files/Readme.md index e783c08..398d07c 100644 --- a/clean_nist_files/Readme.md +++ b/clean_nist_files/Readme.md @@ -157,3 +157,13 @@ Once the script has been read and updated as needed, it can be run with a `pytho This script will take one directory as input, load all the files, remove all the PII informations, and write the files in a second directory. +# Check the cleaning process + +To check the content of the NIST file, use the `check_nist_file.py` script. +This file should be updated to point the `nist_file_path` to the file on disk. + +By printing the `nist_file` object, the content of the file is outputted to the console. +All the fields are displayed, on the left the field tag, and on the right the content of the field. + +If one field present in the output should be delete, update the `clean_files.py` file accordingly. + diff --git a/clean_nist_files/check_nist_file.py b/clean_nist_files/check_nist_file.py new file mode 100644 index 0000000..a414743 --- /dev/null +++ b/clean_nist_files/check_nist_file.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- + +from NIST import NISTf + +nist_file_path = "" + +nist_file = NISTf( nist_file_path ) + +print( nist_file ) + -- GitLab