malwareDetector 0.1.8__tar.gz → 0.1.9__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malwareDetector
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Malware detector specification for NTUST isLab
5
5
  Author: PO-LIN LAI
6
6
  Author-email: bolin8017@gmail.com
@@ -85,10 +85,9 @@ class FolderConfig(BaseModel, extra=Extra.allow):
85
85
  vectorize: str = VECTORIZE_DIR
86
86
  model: str = MODEL_DIR
87
87
  predict: str = PREDICT_DIR
88
- folder_list: List[str] = [dataset, feature, vectorize, model, predict]
89
88
 
90
89
  def update_folder_list(self):
91
- self.folder_list = [self.dataset, self.feature, self.vectorize, self.model, self.predict]
90
+ self.folder_list = [getattr(self, folder) for folder in self.__dict__.keys()]
92
91
 
93
92
  def __iter__(self):
94
93
  return FolderClassIter(self.folder_list)
@@ -271,8 +270,9 @@ def write_config_to_file(config: Config):
271
270
  the execution folder with the
272
271
  default name `config.json`.
273
272
  '''
273
+
274
274
  with open(CONFIG_FILE_NAME, "w", encoding="utf8") as file:
275
- file.write(config.json())
275
+ file.write(config.json(exclude={"folder": {"folder_list"}}))
276
276
 
277
277
  def detect_config_file() -> None:
278
278
  '''
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malwareDetector
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Malware detector specification for NTUST isLab
5
5
  Author: PO-LIN LAI
6
6
  Author-email: bolin8017@gmail.com
@@ -11,7 +11,7 @@ required_packages = [
11
11
  setup(
12
12
  name='malwareDetector',
13
13
  packages=find_packages(include=['malwareDetector']),
14
- version='0.1.8',
14
+ version='0.1.9',
15
15
  description='Malware detector specification for NTUST isLab',
16
16
  long_description=long_description,
17
17
  long_description_content_type="text/markdown",