malwareDetector 0.1.10__py3-none-any.whl → 0.1.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of malwareDetector might be problematic. Click here for more details.

malwareDetector/config.py CHANGED
@@ -273,10 +273,9 @@ def parameter_parser(config: Config) -> Config:
273
273
 
274
274
  def write_config_to_file(config: Config, config_file_path=DEFAULT_CONFIG_PATH):
275
275
  '''
276
- Writes the parameter settings of
277
- the config object to a JSON file in
278
- the execution folder with the
279
- default name `config.json`.
276
+ Writes the parameter settings of the config object to a JSON file
277
+ in the execution folder with the default path `"./config.json."`
278
+ or you can specify the path by passing the `config_file_path` parameter.
280
279
  '''
281
280
 
282
281
  with open(config_file_path, "w", encoding="utf8") as file:
@@ -288,6 +287,8 @@ def detect_config_file(config_file_path=DEFAULT_CONFIG_PATH) -> None:
288
287
  the command line parsing functionality will not be enabled.
289
288
  On the other hand, if you execute Python in the regular way,
290
289
  it will utilize argparse to read the parameters passed through the command line.
290
+ default config.json will be created in the local folder if it does not exist.
291
+ `config_file_path` is the path to the config file.
291
292
  '''
292
293
 
293
294
  if 'ipykernel' not in sys.modules and len(sys.argv) > 1:
@@ -310,8 +311,9 @@ def detect_config_file(config_file_path=DEFAULT_CONFIG_PATH) -> None:
310
311
 
311
312
  def read_config(config_file_path=DEFAULT_CONFIG_PATH, count=1) -> Config:
312
313
  '''
313
- Reads the settings from the `config.json` file.
314
+ Reads the settings from config_file_path and returns a Config object.
314
315
  '''
316
+
315
317
  if count > 3:
316
318
  logging.warning("Failed to read config, returning default config")
317
319
  return Config()
malwareDetector/const.py CHANGED
@@ -2,9 +2,9 @@
2
2
  Save the variables of the system's default constants.
3
3
  '''
4
4
 
5
- DEFAULT_CONFIG_PATH="./config.json"
6
5
  DEFAULT_INPUT_PATH="./Dataset/malware"
7
6
  DEFAULT_OUT_PATH="./Feature/feature.csv"
7
+ DEFAULT_CONFIG_PATH="./config.json"
8
8
  DEFAULT_MODEL_NAME="SVM"
9
9
  DEFAULT_DIMENSIONS=128
10
10
  DEFAULT_WORKERS=4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malwareDetector
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Malware detector specification for NTUST isLab
5
5
  Author: PO-LIN LAI
6
6
  Author-email: bolin8017@gmail.com
@@ -0,0 +1,10 @@
1
+ malwareDetector/__init__.py,sha256=x9kkfeWTUR0g6RQkE13V2sZhY2DSVD3KqzcxOqlNjtA,768
2
+ malwareDetector/config.py,sha256=55CNQcm6MdT6GTvKw-TTvY-m0cnZ2xwFeIflD0UjmaM,12430
3
+ malwareDetector/const.py,sha256=8TKTqjS70sU3cBFSwFUaWmoLiguRbi0ul63xswtA_Ho,533
4
+ malwareDetector/detector.py,sha256=IeLfmOoMp20s-io5w8igMc5bJdXt8ir-EarHKBo3C_U,2207
5
+ malwareDetector/utils.py,sha256=kjEX-A-FuwjGwxZ-2JP489NaaeC7HwvdMrDrfPk4pYE,371
6
+ malwareDetector-0.1.11.dist-info/LICENCE.txt,sha256=2XPCaZqZ-jgHh7e1DKa87JUeuOB6DC0jaZonmjDeILM,1088
7
+ malwareDetector-0.1.11.dist-info/METADATA,sha256=Mo5vOK61Uy7pYbkTpRygbrDjSwZQ_qkcMisIIYSTVfs,2287
8
+ malwareDetector-0.1.11.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
9
+ malwareDetector-0.1.11.dist-info/top_level.txt,sha256=wRXSanQD5XDXRYp3lPh1SjltOo6rpC5jktmR69tqIQo,16
10
+ malwareDetector-0.1.11.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- malwareDetector/__init__.py,sha256=x9kkfeWTUR0g6RQkE13V2sZhY2DSVD3KqzcxOqlNjtA,768
2
- malwareDetector/config.py,sha256=_Wk3XAaQIcG0O_fxhsz7TwEloM-w6IeEr0gpJJLc4vY,12195
3
- malwareDetector/const.py,sha256=9XC5FUofRz6meRdFkzUPe3LK8fp-aBVCFHlsSLFD9b0,533
4
- malwareDetector/detector.py,sha256=IeLfmOoMp20s-io5w8igMc5bJdXt8ir-EarHKBo3C_U,2207
5
- malwareDetector/utils.py,sha256=kjEX-A-FuwjGwxZ-2JP489NaaeC7HwvdMrDrfPk4pYE,371
6
- malwareDetector-0.1.10.dist-info/LICENCE.txt,sha256=2XPCaZqZ-jgHh7e1DKa87JUeuOB6DC0jaZonmjDeILM,1088
7
- malwareDetector-0.1.10.dist-info/METADATA,sha256=SPO7of7kYU9zIKn-cJsJa9wI4qK6icSZ4aSlVgP1YS0,2287
8
- malwareDetector-0.1.10.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
9
- malwareDetector-0.1.10.dist-info/top_level.txt,sha256=wRXSanQD5XDXRYp3lPh1SjltOo6rpC5jktmR69tqIQo,16
10
- malwareDetector-0.1.10.dist-info/RECORD,,