maya-umbrella 0.14.0__tar.gz → 0.14.2__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.
Files changed (40) hide show
  1. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/PKG-INFO +83 -8
  2. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/README.md +80 -5
  3. maya_umbrella-0.14.2/maya_umbrella/__version__.py +1 -0
  4. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/vaccine3.py +3 -1
  5. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/pyproject.toml +4 -4
  6. maya_umbrella-0.14.0/maya_umbrella/__version__.py +0 -1
  7. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/LICENSE +0 -0
  8. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/__init__.py +0 -0
  9. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/__init__.py +0 -0
  10. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/atomicwrites/LICENSE +0 -0
  11. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/atomicwrites/__init__.py +0 -0
  12. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/atomicwrites.pyi +0 -0
  13. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six/__init__.pyi +0 -0
  14. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six/moves/__init__.pyi +0 -0
  15. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six/moves/configparser.pyi +0 -0
  16. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six.LICENSE +0 -0
  17. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six.py +0 -0
  18. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/vendor.txt +0 -0
  19. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/cleaner.py +0 -0
  20. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/collector.py +0 -0
  21. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/constants.py +0 -0
  22. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/defender.py +0 -0
  23. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/filesystem.py +0 -0
  24. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/hooks/__init__.py +0 -0
  25. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/hooks/delete_turtle.py +0 -0
  26. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/hooks/delete_unknown_plugin_node.py +0 -0
  27. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/hooks/fix_model_panel.py +0 -0
  28. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/hooks/fix_no_scene_name.py +0 -0
  29. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/hooks/fix_on_model_change_3dc.py +0 -0
  30. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/i18n.py +0 -0
  31. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/locales/en_US.json +0 -0
  32. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/locales/zh_CN.json +0 -0
  33. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/log.py +0 -0
  34. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/maya_funs.py +0 -0
  35. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/scanner.py +0 -0
  36. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/signatures.py +0 -0
  37. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/vaccine.py +0 -0
  38. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/__init__.py +0 -0
  39. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/vaccine1.py +0 -0
  40. {maya_umbrella-0.14.0 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/vaccine2.py +0 -0
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maya_umbrella
3
- Version: 0.14.0
4
- Summary: Check and fix maya virus.
3
+ Version: 0.14.2
4
+ Summary: A better Autodesk Maya antivirus tool detects and removes malicious.
5
5
  Home-page: https://github.com/loonghao/maya_umbrella
6
6
  License: MIT
7
- Keywords: notifiers,python,Maya,dcc
7
+ Keywords: Autodesk Maya,python,Maya,dcc,antivirus,Security Tools,maya_umbrella
8
8
  Author: longhao
9
9
  Author-email: hal.long@outlook.com
10
10
  Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*
@@ -23,7 +23,7 @@ Project-URL: Documentation, https://github.com/loonghao/maya_umbrella
23
23
  Project-URL: Repository, https://github.com/loonghao/maya_umbrella
24
24
  Description-Content-Type: text/markdown
25
25
 
26
- # maya-umbrella
26
+ ![maya_umbrella.ing Banner](https://raw.githubusercontent.com/loonghao/maya_umbrella/main/resources/banner.png)
27
27
 
28
28
  [![Python Version](https://img.shields.io/pypi/pyversions/maya-umbrella)](https://img.shields.io/pypi/pyversions/maya-umbrella)
29
29
  [![Nox](https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg)](https://github.com/wntrblm/nox)
@@ -43,9 +43,11 @@ Description-Content-Type: text/markdown
43
43
  [![maya-2018](https://img.shields.io/badge/maya-2018-green)](https://img.shields.io/badge/maya-2018-green)
44
44
 
45
45
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
46
- [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)
46
+ [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
47
47
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
48
48
 
49
+ A better Autodesk Maya antivirus tool detects and removes malicious.
50
+
49
51
  This tool is designed to provide a robust solution for identifying and resolving any potential viruses within Autodesk
50
52
  Maya.
51
53
  It ensures a secure and seamless user experience by proactively scanning for threats and effectively neutralizing them.
@@ -55,11 +57,15 @@ It can be provided as an API for seamless integration into your existing pipelin
55
57
  # 安装
56
58
 
57
59
  ## pip 安装
60
+ maya_umbrella is distributed as a standard pipy package, so we can install it via pip install.
61
+
58
62
  maya_umbrella是以标准pipy包去发布的,所以我们可以通过pip install去安装
59
63
  ```shell
60
64
  your/maya-root/mayapy -m pip install maya-umbrella
61
65
  ```
62
66
  ## 一键安装
67
+ Download the corresponding version of the zip package in the release, unzip it and double-click `install.bat` to install it.
68
+
63
69
  在release里面下载对应版本的zip包,解压后双击`install.bat`即可安装
64
70
 
65
71
  更新版本
@@ -88,13 +94,21 @@ pip install -r requirements-dev.txt
88
94
 
89
95
 
90
96
  ## 在maya中测试
97
+ With `nox -s maya -- <maya version>`, start maya.
98
+ Nox will dynamically register a nox session based on your local installation of maya,
99
+ e.g. if you have `maya-2018` installed locally, then you can start maya with a test environment.
100
+ Then you can start maya with a test environment via
91
101
 
92
102
  通过`nox -s maya -- <maya version>`, 启动maya.
93
- nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2020`,
103
+ nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2018`,
94
104
  那么通过可以启动带有测试环境的maya
105
+
95
106
  ```shell
96
107
  nox -s maya -- 2018
97
108
  ```
109
+ **Note: there are two `-` between maya and the version number**.
110
+
111
+ Starting maya and executing the following code in the script editor will dynamically open the ma file from `<repo>/tests/virus/` to test it.
98
112
 
99
113
  **注意:maya 与 版本号之间有 俩个`-`**
100
114
 
@@ -105,23 +119,29 @@ import manual_test_in_maya
105
119
 
106
120
  manual_test_in_maya.start()
107
121
  ```
122
+ It is also possible to execute the corresponding tests via pytest, which also requires a local installation of the corresponding maya
108
123
 
109
124
  也可以通过pytest去执行对应的测试,也需要本地安装了对应的maya
110
125
 
111
126
  ```shell
112
127
  nox -s maya -- 2018 --test
113
128
  ```
129
+ **Note: Command line crash may occur in versions below maya-2022 (PY2)**.
114
130
 
115
131
  **注意:在maya-2022 (PY2) 以下的版本可能会出现命令行crash的情况**
116
132
 
117
133
 
118
134
  ## 增加新的疫苗
135
+ Create a new py in `<repo>/maya_umbrella/vaccines/`, since many viruses don't have a specific name, we'll use `vaccine<id>.py`.
136
+ Inherit `from maya_umbrella.vaccine import AbstractVaccine` and call the class `Vaccine`, and then write the virus collection logic.
119
137
 
120
138
  在`<repo>/maya_umbrella/vaccines/` 新建一个py, 因为有很多病毒没有具体的名字代号,我们统一以`vaccine<id>.py`
121
139
  继承`from maya_umbrella.vaccine import AbstractVaccine`并且class名字叫`Vaccine`即可, 然后去写具体的收集病毒逻辑
122
140
 
123
141
  ## 代码检查
124
142
 
143
+ We can use the encapsulated `nox` command to perform a code check.
144
+
125
145
  我们可以利用封装好的`nox`命令去执行进行代码检查
126
146
 
127
147
  ```shell
@@ -134,6 +154,9 @@ nox -s lint-fix
134
154
  ```
135
155
 
136
156
  # 生成安装包
157
+ Execute the following command to create a zip under <repo>/.zip, with `--version` the version number of the current tool.
158
+
159
+ **Note: between `make-zip` and `--version` there are two `-`**.
137
160
 
138
161
  执行下面的命令可以在<repo>/.zip下面创建zip,参数 `--version` 当前工具的版本号
139
162
 
@@ -144,6 +167,11 @@ nox -s make-zip -- --version 0.5.0
144
167
  ```
145
168
 
146
169
  # 环境变量
170
+ We can use the following environment variables to modify some of the settings of maya_umbrella,
171
+
172
+ so that companies with pipelines can better integrate them.
173
+
174
+ Modify the log saving directory of maya umbrella, the default is the windows temp directory.
147
175
 
148
176
  我们可以通过下列环境变量去修改maya_umbrella的一些设置,方便有pipeline的公司可以更好的集成
149
177
 
@@ -152,6 +180,7 @@ nox -s make-zip -- --version 0.5.0
152
180
  ```shell
153
181
  MAYA_UMBRELLA_LOG_ROOT
154
182
  ```
183
+ Change the name of the log file for maya umbrella, default is `maya_umbrella`.
155
184
 
156
185
  修改maya umbrella的日志文件名称, 默认是`maya_umbrella`
157
186
 
@@ -159,11 +188,21 @@ MAYA_UMBRELLA_LOG_ROOT
159
188
  MAYA_UMBRELLA_LOG_NAME
160
189
  ```
161
190
 
162
- 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息
191
+ Set the log level, the default is info, can be debug can see more log information.
192
+
193
+ 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息.
163
194
 
164
195
  ```shell
165
196
  MAYA_UMBRELLA_LOG_LEVEL
166
197
  ```
198
+ Change the name of the backup folder for antivirus files, default is `_virus`.
199
+
200
+ For example:
201
+
202
+ Your file path is `c:/your/path/file.ma`.
203
+
204
+ Then the backup file path is `c:/your/path/_virus/file.ma`.
205
+
167
206
  修改杀毒后文件的备份文件夹名称, 默认是`_virus`
168
207
  比如:
169
208
  你文件路径是 `c:/your/path/file.ma`
@@ -171,25 +210,43 @@ MAYA_UMBRELLA_LOG_LEVEL
171
210
  ```shell
172
211
  MAYA_UMBRELLA_BACKUP_FOLDER_NAME
173
212
  ```
174
- 默认的显示语言,包含日志打印输出等,默认是根据你当前maya的界面语言来设置的,当然我们也可以通过下面的环境变量去设置
213
+ The default display language, including logging printouts, etc.
214
+
215
+ is set by default according to your current maya interface language,
216
+
217
+ but of course we can also set it via the following environment variables.
218
+
219
+ 默认的显示语言,包含日志打印输出等,默认是根据你当前maya的界面语言来设置的,当然我们也可以通过下面的环境变量去设置.
175
220
  ```shell
176
221
  MAYA_UMBRELLA_LANG
177
222
  ```
223
+ Ignore saving to the backup folder,
224
+ *please note that if you are not clear about the consequences of this please do not modify it easily*,
225
+ the default batch antivirus will automatically back up the source file to the current file's backup folder
226
+ after the batch antivirus.
178
227
 
179
228
  忽略保存到备份文件夹,*请注意,如果你不清楚这个会导致的后果请不要轻易修改*,默认批量杀毒后会把源文件自动备份到当前文件的备份文件夹.
229
+
180
230
  ```shell
181
231
  MAYA_UMBRELLA_IGNORE_BACKUP
182
232
  ```
233
+ If ignored please set to
183
234
 
184
235
  如果忽略请设置为
185
236
  ```shell
186
237
  SET MAYA_UMBRELLA_IGNORE_BACKUP=true
187
238
  ```
188
239
 
240
+ For the portable version of Maya,
241
+ you can specify the Maya path by adding the `MAYA_LOCATION` environment variable.
242
+
189
243
  如果是便携版Maya,可以通过添加 `MAYA_LOCATION` 环境变量指定Maya路径
244
+
190
245
  ```shell
191
246
  SET MAYA_LOCATION=d:/your/path/maya_version/
192
247
  ```
248
+ You can also specify a directory from the command line.
249
+
193
250
  也可以通过命令行指定目录
194
251
 
195
252
  ```shell
@@ -198,6 +255,9 @@ nox -s maya -- 2018 --install-root /your/local/maya/root
198
255
  ```
199
256
 
200
257
  # API
258
+
259
+ Get virus files that have not been repaired in the current scenario.
260
+
201
261
  获取当前场景没有被修复的病毒文件
202
262
 
203
263
  ```python
@@ -207,6 +267,8 @@ api = MayaVirusDefender()
207
267
  print(api.get_unfixed_references())
208
268
  ```
209
269
 
270
+ Batch repair of files, via regular expressions.
271
+
210
272
  批量修复文件, 通过正则表达式
211
273
  ```python
212
274
  from maya_umbrella import MayaVirusScanner
@@ -217,6 +279,18 @@ print(api.scan_files_from_pattern("your/path/*.m[ab]"))
217
279
  ```
218
280
 
219
281
  # 案例
282
+
283
+ If you want to quickly go through maya standalone and batch clean up maya files.
284
+
285
+ You can either `download` or `git clone` the current `main` branch.
286
+
287
+ Set up your development environment according to the guidelines above,
288
+ and Use the `nox` command to start the maya `standalone` environment,
289
+ the version of maya is based on your current local installation of maya.
290
+ For example, if you have `2018` installed locally, Then `nox -s maya -- 2018 --standalone`.
291
+
292
+ The following syntax starts a maya-2020 environment to dynamically check for viruses from the `c:/test` folder.
293
+
220
294
  如果你想要快速通过maya standalone去批量清理maya文件,
221
295
  可以`下载`或者`git clone`当前`main`分支的工程,
222
296
  根据上面指引设置好开发环境,
@@ -249,6 +323,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
249
323
  </tr>
250
324
  <tr>
251
325
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/Wenfeng-Zhang"><img src="https://avatars.githubusercontent.com/u/54899080?v=4?s=100" width="100px;" alt="Wenfeng Zhang"/><br /><sub><b>Wenfeng Zhang</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=Wenfeng-Zhang" title="Tests">⚠️</a> <a href="https://github.com/loonghao/maya_umbrella/commits?author=Wenfeng-Zhang" title="Code">💻</a></td>
326
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/rickdave"><img src="https://avatars.githubusercontent.com/u/37840466?v=4?s=100" width="100px;" alt="rickdave"/><br /><sub><b>rickdave</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/issues?q=author%3Arickdave" title="Bug reports">🐛</a></td>
252
327
  </tr>
253
328
  </tbody>
254
329
  </table>
@@ -1,4 +1,4 @@
1
- # maya-umbrella
1
+ ![maya_umbrella.ing Banner](https://raw.githubusercontent.com/loonghao/maya_umbrella/main/resources/banner.png)
2
2
 
3
3
  [![Python Version](https://img.shields.io/pypi/pyversions/maya-umbrella)](https://img.shields.io/pypi/pyversions/maya-umbrella)
4
4
  [![Nox](https://img.shields.io/badge/%F0%9F%A6%8A-Nox-D85E00.svg)](https://github.com/wntrblm/nox)
@@ -18,9 +18,11 @@
18
18
  [![maya-2018](https://img.shields.io/badge/maya-2018-green)](https://img.shields.io/badge/maya-2018-green)
19
19
 
20
20
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
21
- [![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors-)
21
+ [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
22
22
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
23
23
 
24
+ A better Autodesk Maya antivirus tool detects and removes malicious.
25
+
24
26
  This tool is designed to provide a robust solution for identifying and resolving any potential viruses within Autodesk
25
27
  Maya.
26
28
  It ensures a secure and seamless user experience by proactively scanning for threats and effectively neutralizing them.
@@ -30,11 +32,15 @@ It can be provided as an API for seamless integration into your existing pipelin
30
32
  # 安装
31
33
 
32
34
  ## pip 安装
35
+ maya_umbrella is distributed as a standard pipy package, so we can install it via pip install.
36
+
33
37
  maya_umbrella是以标准pipy包去发布的,所以我们可以通过pip install去安装
34
38
  ```shell
35
39
  your/maya-root/mayapy -m pip install maya-umbrella
36
40
  ```
37
41
  ## 一键安装
42
+ Download the corresponding version of the zip package in the release, unzip it and double-click `install.bat` to install it.
43
+
38
44
  在release里面下载对应版本的zip包,解压后双击`install.bat`即可安装
39
45
 
40
46
  更新版本
@@ -63,13 +69,21 @@ pip install -r requirements-dev.txt
63
69
 
64
70
 
65
71
  ## 在maya中测试
72
+ With `nox -s maya -- <maya version>`, start maya.
73
+ Nox will dynamically register a nox session based on your local installation of maya,
74
+ e.g. if you have `maya-2018` installed locally, then you can start maya with a test environment.
75
+ Then you can start maya with a test environment via
66
76
 
67
77
  通过`nox -s maya -- <maya version>`, 启动maya.
68
- nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2020`,
78
+ nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2018`,
69
79
  那么通过可以启动带有测试环境的maya
80
+
70
81
  ```shell
71
82
  nox -s maya -- 2018
72
83
  ```
84
+ **Note: there are two `-` between maya and the version number**.
85
+
86
+ Starting maya and executing the following code in the script editor will dynamically open the ma file from `<repo>/tests/virus/` to test it.
73
87
 
74
88
  **注意:maya 与 版本号之间有 俩个`-`**
75
89
 
@@ -80,23 +94,29 @@ import manual_test_in_maya
80
94
 
81
95
  manual_test_in_maya.start()
82
96
  ```
97
+ It is also possible to execute the corresponding tests via pytest, which also requires a local installation of the corresponding maya
83
98
 
84
99
  也可以通过pytest去执行对应的测试,也需要本地安装了对应的maya
85
100
 
86
101
  ```shell
87
102
  nox -s maya -- 2018 --test
88
103
  ```
104
+ **Note: Command line crash may occur in versions below maya-2022 (PY2)**.
89
105
 
90
106
  **注意:在maya-2022 (PY2) 以下的版本可能会出现命令行crash的情况**
91
107
 
92
108
 
93
109
  ## 增加新的疫苗
110
+ Create a new py in `<repo>/maya_umbrella/vaccines/`, since many viruses don't have a specific name, we'll use `vaccine<id>.py`.
111
+ Inherit `from maya_umbrella.vaccine import AbstractVaccine` and call the class `Vaccine`, and then write the virus collection logic.
94
112
 
95
113
  在`<repo>/maya_umbrella/vaccines/` 新建一个py, 因为有很多病毒没有具体的名字代号,我们统一以`vaccine<id>.py`
96
114
  继承`from maya_umbrella.vaccine import AbstractVaccine`并且class名字叫`Vaccine`即可, 然后去写具体的收集病毒逻辑
97
115
 
98
116
  ## 代码检查
99
117
 
118
+ We can use the encapsulated `nox` command to perform a code check.
119
+
100
120
  我们可以利用封装好的`nox`命令去执行进行代码检查
101
121
 
102
122
  ```shell
@@ -109,6 +129,9 @@ nox -s lint-fix
109
129
  ```
110
130
 
111
131
  # 生成安装包
132
+ Execute the following command to create a zip under <repo>/.zip, with `--version` the version number of the current tool.
133
+
134
+ **Note: between `make-zip` and `--version` there are two `-`**.
112
135
 
113
136
  执行下面的命令可以在<repo>/.zip下面创建zip,参数 `--version` 当前工具的版本号
114
137
 
@@ -119,6 +142,11 @@ nox -s make-zip -- --version 0.5.0
119
142
  ```
120
143
 
121
144
  # 环境变量
145
+ We can use the following environment variables to modify some of the settings of maya_umbrella,
146
+
147
+ so that companies with pipelines can better integrate them.
148
+
149
+ Modify the log saving directory of maya umbrella, the default is the windows temp directory.
122
150
 
123
151
  我们可以通过下列环境变量去修改maya_umbrella的一些设置,方便有pipeline的公司可以更好的集成
124
152
 
@@ -127,6 +155,7 @@ nox -s make-zip -- --version 0.5.0
127
155
  ```shell
128
156
  MAYA_UMBRELLA_LOG_ROOT
129
157
  ```
158
+ Change the name of the log file for maya umbrella, default is `maya_umbrella`.
130
159
 
131
160
  修改maya umbrella的日志文件名称, 默认是`maya_umbrella`
132
161
 
@@ -134,11 +163,21 @@ MAYA_UMBRELLA_LOG_ROOT
134
163
  MAYA_UMBRELLA_LOG_NAME
135
164
  ```
136
165
 
137
- 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息
166
+ Set the log level, the default is info, can be debug can see more log information.
167
+
168
+ 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息.
138
169
 
139
170
  ```shell
140
171
  MAYA_UMBRELLA_LOG_LEVEL
141
172
  ```
173
+ Change the name of the backup folder for antivirus files, default is `_virus`.
174
+
175
+ For example:
176
+
177
+ Your file path is `c:/your/path/file.ma`.
178
+
179
+ Then the backup file path is `c:/your/path/_virus/file.ma`.
180
+
142
181
  修改杀毒后文件的备份文件夹名称, 默认是`_virus`
143
182
  比如:
144
183
  你文件路径是 `c:/your/path/file.ma`
@@ -146,25 +185,43 @@ MAYA_UMBRELLA_LOG_LEVEL
146
185
  ```shell
147
186
  MAYA_UMBRELLA_BACKUP_FOLDER_NAME
148
187
  ```
149
- 默认的显示语言,包含日志打印输出等,默认是根据你当前maya的界面语言来设置的,当然我们也可以通过下面的环境变量去设置
188
+ The default display language, including logging printouts, etc.
189
+
190
+ is set by default according to your current maya interface language,
191
+
192
+ but of course we can also set it via the following environment variables.
193
+
194
+ 默认的显示语言,包含日志打印输出等,默认是根据你当前maya的界面语言来设置的,当然我们也可以通过下面的环境变量去设置.
150
195
  ```shell
151
196
  MAYA_UMBRELLA_LANG
152
197
  ```
198
+ Ignore saving to the backup folder,
199
+ *please note that if you are not clear about the consequences of this please do not modify it easily*,
200
+ the default batch antivirus will automatically back up the source file to the current file's backup folder
201
+ after the batch antivirus.
153
202
 
154
203
  忽略保存到备份文件夹,*请注意,如果你不清楚这个会导致的后果请不要轻易修改*,默认批量杀毒后会把源文件自动备份到当前文件的备份文件夹.
204
+
155
205
  ```shell
156
206
  MAYA_UMBRELLA_IGNORE_BACKUP
157
207
  ```
208
+ If ignored please set to
158
209
 
159
210
  如果忽略请设置为
160
211
  ```shell
161
212
  SET MAYA_UMBRELLA_IGNORE_BACKUP=true
162
213
  ```
163
214
 
215
+ For the portable version of Maya,
216
+ you can specify the Maya path by adding the `MAYA_LOCATION` environment variable.
217
+
164
218
  如果是便携版Maya,可以通过添加 `MAYA_LOCATION` 环境变量指定Maya路径
219
+
165
220
  ```shell
166
221
  SET MAYA_LOCATION=d:/your/path/maya_version/
167
222
  ```
223
+ You can also specify a directory from the command line.
224
+
168
225
  也可以通过命令行指定目录
169
226
 
170
227
  ```shell
@@ -173,6 +230,9 @@ nox -s maya -- 2018 --install-root /your/local/maya/root
173
230
  ```
174
231
 
175
232
  # API
233
+
234
+ Get virus files that have not been repaired in the current scenario.
235
+
176
236
  获取当前场景没有被修复的病毒文件
177
237
 
178
238
  ```python
@@ -182,6 +242,8 @@ api = MayaVirusDefender()
182
242
  print(api.get_unfixed_references())
183
243
  ```
184
244
 
245
+ Batch repair of files, via regular expressions.
246
+
185
247
  批量修复文件, 通过正则表达式
186
248
  ```python
187
249
  from maya_umbrella import MayaVirusScanner
@@ -192,6 +254,18 @@ print(api.scan_files_from_pattern("your/path/*.m[ab]"))
192
254
  ```
193
255
 
194
256
  # 案例
257
+
258
+ If you want to quickly go through maya standalone and batch clean up maya files.
259
+
260
+ You can either `download` or `git clone` the current `main` branch.
261
+
262
+ Set up your development environment according to the guidelines above,
263
+ and Use the `nox` command to start the maya `standalone` environment,
264
+ the version of maya is based on your current local installation of maya.
265
+ For example, if you have `2018` installed locally, Then `nox -s maya -- 2018 --standalone`.
266
+
267
+ The following syntax starts a maya-2020 environment to dynamically check for viruses from the `c:/test` folder.
268
+
195
269
  如果你想要快速通过maya standalone去批量清理maya文件,
196
270
  可以`下载`或者`git clone`当前`main`分支的工程,
197
271
  根据上面指引设置好开发环境,
@@ -224,6 +298,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
224
298
  </tr>
225
299
  <tr>
226
300
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/Wenfeng-Zhang"><img src="https://avatars.githubusercontent.com/u/54899080?v=4?s=100" width="100px;" alt="Wenfeng Zhang"/><br /><sub><b>Wenfeng Zhang</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/commits?author=Wenfeng-Zhang" title="Tests">⚠️</a> <a href="https://github.com/loonghao/maya_umbrella/commits?author=Wenfeng-Zhang" title="Code">💻</a></td>
301
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/rickdave"><img src="https://avatars.githubusercontent.com/u/37840466?v=4?s=100" width="100px;" alt="rickdave"/><br /><sub><b>rickdave</b></sub></a><br /><a href="https://github.com/loonghao/maya_umbrella/issues?q=author%3Arickdave" title="Bug reports">🐛</a></td>
227
302
  </tr>
228
303
  </tbody>
229
304
  </table>
@@ -0,0 +1 @@
1
+ __version__ = "0.14.2"
@@ -1,6 +1,7 @@
1
1
  # Import built-in modules
2
2
  import glob
3
3
  import os
4
+ import platform
4
5
 
5
6
  # Import local modules
6
7
  from maya_umbrella.filesystem import check_virus_by_signature
@@ -81,7 +82,8 @@ class Vaccine(AbstractVaccine):
81
82
 
82
83
  def collect_issues(self):
83
84
  """Collect all issues related to the virus."""
84
- self.api.add_malicious_file(os.path.join(os.getenv("APPDATA"), "syssst"))
85
+ if platform.system() == "Windows":
86
+ self.api.add_malicious_file(os.path.join(os.getenv("APPDATA"), "syssst"))
85
87
  self.collect_infected_mel_files()
86
88
  self.collect_infected_hik_files()
87
89
  self.collect_infected_nodes()
@@ -1,11 +1,11 @@
1
1
  [tool.poetry]
2
2
  name = "maya_umbrella"
3
- version = "0.14.0"
4
- description = "Check and fix maya virus."
3
+ version = "0.14.2"
4
+ description = "A better Autodesk Maya antivirus tool detects and removes malicious."
5
5
  homepage = "https://github.com/loonghao/maya_umbrella"
6
6
  repository = "https://github.com/loonghao/maya_umbrella"
7
7
  documentation = "https://github.com/loonghao/maya_umbrella"
8
- keywords = ["notifiers", "python", "Maya", "dcc"]
8
+ keywords = ["Autodesk Maya", "python", "Maya", "dcc", "antivirus", "Security Tools", "maya_umbrella"]
9
9
  authors = ["longhao <hal.long@outlook.com>"]
10
10
  license = "MIT"
11
11
  readme = "README.md"
@@ -36,7 +36,7 @@ nox = { version = "^2024.3.2", python = ">=3.8.1,<3.11" }
36
36
 
37
37
  [tool.commitizen]
38
38
  name = "cz_conventional_commits"
39
- version = "0.14.0"
39
+ version = "0.14.2"
40
40
  tag_format = "v$version"
41
41
  version_files = [
42
42
  "pyproject.toml:version",
@@ -1 +0,0 @@
1
- __version__ = "0.14.0"
File without changes