forked from atenreiro/opensquat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andre Tenreiro
committed
Jul 23, 2020
1 parent
05d79f3
commit 6d64f2f
Showing
10 changed files
with
63 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
# Module: __init__.py | ||
__VERSION__ = "version 1.91" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# Module: arg_parser.py | ||
""" | ||
openSquat | ||
"""openSquat | ||
(c) CERT-MZ | Andre Tenreiro | [email protected] | ||
|
@@ -16,7 +15,7 @@ | |
|
||
|
||
def validate_period(search_period): | ||
"""Validate period | ||
"""Validate period. | ||
Args: | ||
period: string containing the searchable period, either day or week. | ||
|
@@ -35,7 +34,7 @@ def validate_period(search_period): | |
|
||
|
||
def validate_type(file_type): | ||
"""Validate file_type | ||
"""Validate file_type. | ||
Args: | ||
file_type: string containing file type, can only be txt, json or csv. | ||
|
@@ -54,8 +53,7 @@ def validate_type(file_type): | |
|
||
|
||
def validate_confidence(confidence_level): | ||
|
||
"""Validate confidence_level | ||
"""Validate confidence_level. | ||
Args: | ||
confidence_level: int containing confidence_level, can only be an int | ||
|
@@ -76,15 +74,14 @@ def validate_confidence(confidence_level): | |
|
||
|
||
def get_args(): | ||
"""Parser main function | ||
"""Parser main function. | ||
Args: | ||
none | ||
Return: | ||
args: returns arguments | ||
""" | ||
|
||
# Parser | ||
parser = argparse.ArgumentParser(description="openSquat") | ||
parser.add_argument( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.