Chris Finlayson commited on
Commit
56c4a60
1 Parent(s): 9f2c2b4

Added documentation

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -59,6 +59,10 @@ regexes = {
59
  "ukphones": ukphones
60
  }
61
 
 
 
 
 
62
 
63
  class regex:
64
  def __init__(self, obj, regex):
@@ -72,6 +76,10 @@ class regex:
72
 
73
  return regex_method
74
 
 
 
 
 
75
 
76
  class PiiRegex(object):
77
  def __init__(self, text=""):
@@ -108,6 +116,11 @@ class PiiRegex(object):
108
 
109
  return True if matches else False
110
 
 
 
 
 
 
111
 
112
  class Redactor:
113
 
 
59
  "ukphones": ukphones
60
  }
61
 
62
+ """
63
+ This class is used to compile and find all matches of a given regex pattern in a text.
64
+ It takes an object and a regex pattern as input.
65
+ """
66
 
67
  class regex:
68
  def __init__(self, obj, regex):
 
76
 
77
  return regex_method
78
 
79
+ """
80
+ This class is used to compile and find all matches of a given regex pattern in a text.
81
+ It takes an object and a regex pattern as input.
82
+ """
83
 
84
  class PiiRegex(object):
85
  def __init__(self, text=""):
 
116
 
117
  return True if matches else False
118
 
119
+ """
120
+ This class is used to redact sensitive information from a PDF file.
121
+ It takes a file as input and redacts all the sensitive information found in the file.
122
+ The redacted file is saved as a new PDF file.
123
+ """
124
 
125
  class Redactor:
126