Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Automatically-Generated-Cyber-Security-Compliance-Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jda1g15
Automatically-Generated-Cyber-Security-Compliance-Engine
Commits
556f7137
Commit
556f7137
authored
5 years ago
by
James D'Alton
Browse files
Options
Downloads
Patches
Plain Diff
removed old redundant files
parent
c50c4928
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
extractData.py
+0
-18
0 additions, 18 deletions
extractData.py
temp/test.csv
+0
-9
0 additions, 9 deletions
temp/test.csv
with
0 additions
and
27 deletions
extractData.py
deleted
100644 → 0
+
0
−
18
View file @
c50c4928
import
csv
tableData
=
{}
with
open
(
'
temp/test.csv
'
)
as
compliance_data
:
compliance_data_reader
=
csv
.
reader
(
compliance_data
,
delimiter
=
'
,
'
)
line_count
=
0
for
row
in
compliance_data_reader
:
number_of_columns
=
len
(
row
)
if
line_count
==
0
:
print
(
f
'
{
"
"
.
join
(
row
)
}
'
)
line_count
+=
1
else
:
# row[1] is the 2nd column, not row
for
column
in
row
:
print
(
f
'
{
column
}
'
)
tableData
[
row
[
0
]]
=
row
[
1
]
line_count
+=
1
print
(
f
'
Done: Processed
{
line_count
}
lines.
'
)
This diff is collapsed.
Click to expand it.
temp/test.csv
deleted
100644 → 0
+
0
−
9
View file @
c50c4928
Data, Data Type
Name of person completing form, string
Position of person completing form, string
On behalf of (company name), string
Firewalls, boolean
Secure Configuration, boolean
User Access Control, boolean
Malware Protection, boolean
Patch Management, boolean
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment