maya-umbrella 0.14.1__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.1 → maya_umbrella-0.14.2}/PKG-INFO +58 -6
  2. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/README.md +57 -5
  3. maya_umbrella-0.14.2/maya_umbrella/__version__.py +1 -0
  4. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/pyproject.toml +2 -2
  5. maya_umbrella-0.14.1/maya_umbrella/__version__.py +0 -1
  6. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/LICENSE +0 -0
  7. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/__init__.py +0 -0
  8. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/__init__.py +0 -0
  9. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/atomicwrites/LICENSE +0 -0
  10. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/atomicwrites/__init__.py +0 -0
  11. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/atomicwrites.pyi +0 -0
  12. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six/__init__.pyi +0 -0
  13. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six/moves/__init__.pyi +0 -0
  14. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six/moves/configparser.pyi +0 -0
  15. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six.LICENSE +0 -0
  16. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/six.py +0 -0
  17. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/_vendor/vendor.txt +0 -0
  18. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/cleaner.py +0 -0
  19. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/collector.py +0 -0
  20. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/constants.py +0 -0
  21. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/defender.py +0 -0
  22. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/filesystem.py +0 -0
  23. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/hooks/__init__.py +0 -0
  24. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/hooks/delete_turtle.py +0 -0
  25. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/hooks/delete_unknown_plugin_node.py +0 -0
  26. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/hooks/fix_model_panel.py +0 -0
  27. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/hooks/fix_no_scene_name.py +0 -0
  28. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/hooks/fix_on_model_change_3dc.py +0 -0
  29. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/i18n.py +0 -0
  30. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/locales/en_US.json +0 -0
  31. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/locales/zh_CN.json +0 -0
  32. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/log.py +0 -0
  33. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/maya_funs.py +0 -0
  34. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/scanner.py +0 -0
  35. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/signatures.py +0 -0
  36. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/vaccine.py +0 -0
  37. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/__init__.py +0 -0
  38. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/vaccine1.py +0 -0
  39. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/vaccine2.py +0 -0
  40. {maya_umbrella-0.14.1 → maya_umbrella-0.14.2}/maya_umbrella/vaccines/vaccine3.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: maya_umbrella
3
- Version: 0.14.1
3
+ Version: 0.14.2
4
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
@@ -43,7 +43,7 @@ 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
49
  A better Autodesk Maya antivirus tool detects and removes malicious.
@@ -96,11 +96,11 @@ pip install -r requirements-dev.txt
96
96
  ## 在maya中测试
97
97
  With `nox -s maya -- <maya version>`, start maya.
98
98
  Nox will dynamically register a nox session based on your local installation of maya,
99
- e.g. if you have `maya-2020` installed locally, then you can start maya with a test environment.
99
+ e.g. if you have `maya-2018` installed locally, then you can start maya with a test environment.
100
100
  Then you can start maya with a test environment via
101
101
 
102
102
  通过`nox -s maya -- <maya version>`, 启动maya.
103
- nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2020`,
103
+ nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2018`,
104
104
  那么通过可以启动带有测试环境的maya
105
105
 
106
106
  ```shell
@@ -167,6 +167,11 @@ nox -s make-zip -- --version 0.5.0
167
167
  ```
168
168
 
169
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.
170
175
 
171
176
  我们可以通过下列环境变量去修改maya_umbrella的一些设置,方便有pipeline的公司可以更好的集成
172
177
 
@@ -175,6 +180,7 @@ nox -s make-zip -- --version 0.5.0
175
180
  ```shell
176
181
  MAYA_UMBRELLA_LOG_ROOT
177
182
  ```
183
+ Change the name of the log file for maya umbrella, default is `maya_umbrella`.
178
184
 
179
185
  修改maya umbrella的日志文件名称, 默认是`maya_umbrella`
180
186
 
@@ -182,11 +188,21 @@ MAYA_UMBRELLA_LOG_ROOT
182
188
  MAYA_UMBRELLA_LOG_NAME
183
189
  ```
184
190
 
185
- 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息
191
+ Set the log level, the default is info, can be debug can see more log information.
192
+
193
+ 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息.
186
194
 
187
195
  ```shell
188
196
  MAYA_UMBRELLA_LOG_LEVEL
189
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
+
190
206
  修改杀毒后文件的备份文件夹名称, 默认是`_virus`
191
207
  比如:
192
208
  你文件路径是 `c:/your/path/file.ma`
@@ -194,25 +210,43 @@ MAYA_UMBRELLA_LOG_LEVEL
194
210
  ```shell
195
211
  MAYA_UMBRELLA_BACKUP_FOLDER_NAME
196
212
  ```
197
- 默认的显示语言,包含日志打印输出等,默认是根据你当前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的界面语言来设置的,当然我们也可以通过下面的环境变量去设置.
198
220
  ```shell
199
221
  MAYA_UMBRELLA_LANG
200
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.
201
227
 
202
228
  忽略保存到备份文件夹,*请注意,如果你不清楚这个会导致的后果请不要轻易修改*,默认批量杀毒后会把源文件自动备份到当前文件的备份文件夹.
229
+
203
230
  ```shell
204
231
  MAYA_UMBRELLA_IGNORE_BACKUP
205
232
  ```
233
+ If ignored please set to
206
234
 
207
235
  如果忽略请设置为
208
236
  ```shell
209
237
  SET MAYA_UMBRELLA_IGNORE_BACKUP=true
210
238
  ```
211
239
 
240
+ For the portable version of Maya,
241
+ you can specify the Maya path by adding the `MAYA_LOCATION` environment variable.
242
+
212
243
  如果是便携版Maya,可以通过添加 `MAYA_LOCATION` 环境变量指定Maya路径
244
+
213
245
  ```shell
214
246
  SET MAYA_LOCATION=d:/your/path/maya_version/
215
247
  ```
248
+ You can also specify a directory from the command line.
249
+
216
250
  也可以通过命令行指定目录
217
251
 
218
252
  ```shell
@@ -221,6 +255,9 @@ nox -s maya -- 2018 --install-root /your/local/maya/root
221
255
  ```
222
256
 
223
257
  # API
258
+
259
+ Get virus files that have not been repaired in the current scenario.
260
+
224
261
  获取当前场景没有被修复的病毒文件
225
262
 
226
263
  ```python
@@ -230,6 +267,8 @@ api = MayaVirusDefender()
230
267
  print(api.get_unfixed_references())
231
268
  ```
232
269
 
270
+ Batch repair of files, via regular expressions.
271
+
233
272
  批量修复文件, 通过正则表达式
234
273
  ```python
235
274
  from maya_umbrella import MayaVirusScanner
@@ -240,6 +279,18 @@ print(api.scan_files_from_pattern("your/path/*.m[ab]"))
240
279
  ```
241
280
 
242
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
+
243
294
  如果你想要快速通过maya standalone去批量清理maya文件,
244
295
  可以`下载`或者`git clone`当前`main`分支的工程,
245
296
  根据上面指引设置好开发环境,
@@ -272,6 +323,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
272
323
  </tr>
273
324
  <tr>
274
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>
275
327
  </tr>
276
328
  </tbody>
277
329
  </table>
@@ -18,7 +18,7 @@
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
24
  A better Autodesk Maya antivirus tool detects and removes malicious.
@@ -71,11 +71,11 @@ pip install -r requirements-dev.txt
71
71
  ## 在maya中测试
72
72
  With `nox -s maya -- <maya version>`, start maya.
73
73
  Nox will dynamically register a nox session based on your local installation of maya,
74
- e.g. if you have `maya-2020` installed locally, then you can start maya with a test environment.
74
+ e.g. if you have `maya-2018` installed locally, then you can start maya with a test environment.
75
75
  Then you can start maya with a test environment via
76
76
 
77
77
  通过`nox -s maya -- <maya version>`, 启动maya.
78
- nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2020`,
78
+ nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了`maya-2018`,
79
79
  那么通过可以启动带有测试环境的maya
80
80
 
81
81
  ```shell
@@ -142,6 +142,11 @@ nox -s make-zip -- --version 0.5.0
142
142
  ```
143
143
 
144
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.
145
150
 
146
151
  我们可以通过下列环境变量去修改maya_umbrella的一些设置,方便有pipeline的公司可以更好的集成
147
152
 
@@ -150,6 +155,7 @@ nox -s make-zip -- --version 0.5.0
150
155
  ```shell
151
156
  MAYA_UMBRELLA_LOG_ROOT
152
157
  ```
158
+ Change the name of the log file for maya umbrella, default is `maya_umbrella`.
153
159
 
154
160
  修改maya umbrella的日志文件名称, 默认是`maya_umbrella`
155
161
 
@@ -157,11 +163,21 @@ MAYA_UMBRELLA_LOG_ROOT
157
163
  MAYA_UMBRELLA_LOG_NAME
158
164
  ```
159
165
 
160
- 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息
166
+ Set the log level, the default is info, can be debug can see more log information.
167
+
168
+ 设置日志级别,默认是info, 可以是debug可以看到更多的日志信息.
161
169
 
162
170
  ```shell
163
171
  MAYA_UMBRELLA_LOG_LEVEL
164
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
+
165
181
  修改杀毒后文件的备份文件夹名称, 默认是`_virus`
166
182
  比如:
167
183
  你文件路径是 `c:/your/path/file.ma`
@@ -169,25 +185,43 @@ MAYA_UMBRELLA_LOG_LEVEL
169
185
  ```shell
170
186
  MAYA_UMBRELLA_BACKUP_FOLDER_NAME
171
187
  ```
172
- 默认的显示语言,包含日志打印输出等,默认是根据你当前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的界面语言来设置的,当然我们也可以通过下面的环境变量去设置.
173
195
  ```shell
174
196
  MAYA_UMBRELLA_LANG
175
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.
176
202
 
177
203
  忽略保存到备份文件夹,*请注意,如果你不清楚这个会导致的后果请不要轻易修改*,默认批量杀毒后会把源文件自动备份到当前文件的备份文件夹.
204
+
178
205
  ```shell
179
206
  MAYA_UMBRELLA_IGNORE_BACKUP
180
207
  ```
208
+ If ignored please set to
181
209
 
182
210
  如果忽略请设置为
183
211
  ```shell
184
212
  SET MAYA_UMBRELLA_IGNORE_BACKUP=true
185
213
  ```
186
214
 
215
+ For the portable version of Maya,
216
+ you can specify the Maya path by adding the `MAYA_LOCATION` environment variable.
217
+
187
218
  如果是便携版Maya,可以通过添加 `MAYA_LOCATION` 环境变量指定Maya路径
219
+
188
220
  ```shell
189
221
  SET MAYA_LOCATION=d:/your/path/maya_version/
190
222
  ```
223
+ You can also specify a directory from the command line.
224
+
191
225
  也可以通过命令行指定目录
192
226
 
193
227
  ```shell
@@ -196,6 +230,9 @@ nox -s maya -- 2018 --install-root /your/local/maya/root
196
230
  ```
197
231
 
198
232
  # API
233
+
234
+ Get virus files that have not been repaired in the current scenario.
235
+
199
236
  获取当前场景没有被修复的病毒文件
200
237
 
201
238
  ```python
@@ -205,6 +242,8 @@ api = MayaVirusDefender()
205
242
  print(api.get_unfixed_references())
206
243
  ```
207
244
 
245
+ Batch repair of files, via regular expressions.
246
+
208
247
  批量修复文件, 通过正则表达式
209
248
  ```python
210
249
  from maya_umbrella import MayaVirusScanner
@@ -215,6 +254,18 @@ print(api.scan_files_from_pattern("your/path/*.m[ab]"))
215
254
  ```
216
255
 
217
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
+
218
269
  如果你想要快速通过maya standalone去批量清理maya文件,
219
270
  可以`下载`或者`git clone`当前`main`分支的工程,
220
271
  根据上面指引设置好开发环境,
@@ -247,6 +298,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
247
298
  </tr>
248
299
  <tr>
249
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>
250
302
  </tr>
251
303
  </tbody>
252
304
  </table>
@@ -0,0 +1 @@
1
+ __version__ = "0.14.2"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "maya_umbrella"
3
- version = "0.14.1"
3
+ version = "0.14.2"
4
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"
@@ -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.1"
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.1"
File without changes