maya-umbrella 0.14.1__py2.py3-none-any.whl → 0.14.2__py2.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.
- maya_umbrella/__version__.py +1 -1
- {maya_umbrella-0.14.1.dist-info → maya_umbrella-0.14.2.dist-info}/METADATA +58 -6
- {maya_umbrella-0.14.1.dist-info → maya_umbrella-0.14.2.dist-info}/RECORD +5 -5
- {maya_umbrella-0.14.1.dist-info → maya_umbrella-0.14.2.dist-info}/LICENSE +0 -0
- {maya_umbrella-0.14.1.dist-info → maya_umbrella-0.14.2.dist-info}/WHEEL +0 -0
maya_umbrella/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.14.
|
|
1
|
+
__version__ = "0.14.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maya_umbrella
|
|
3
|
-
Version: 0.14.
|
|
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
|
[](https://img.shields.io/badge/maya-2018-green)
|
|
44
44
|
|
|
45
45
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
46
|
-
[](#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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
maya_umbrella/__init__.py,sha256=rcCnFWmELeJsGoKvLHyzC_GmZu-eT1QXjQCHRGj6HuQ,529
|
|
2
|
-
maya_umbrella/__version__.py,sha256=
|
|
2
|
+
maya_umbrella/__version__.py,sha256=hR3o7j_Ti5BahUZJjIeDkTEL09cseYBFJTIE0WEh8nw,23
|
|
3
3
|
maya_umbrella/_vendor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
maya_umbrella/_vendor/atomicwrites/LICENSE,sha256=h4Mp8L2HitAVEpzovagvSB6G7C6Agx6QnA1nFx2SLnM,1069
|
|
5
5
|
maya_umbrella/_vendor/atomicwrites/__init__.py,sha256=myvxvKRBb7vebPTSUiAopsRrvsm6VojiAvET1xohT-4,6970
|
|
@@ -33,7 +33,7 @@ maya_umbrella/vaccines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
33
33
|
maya_umbrella/vaccines/vaccine1.py,sha256=WLo1uJElTLSjVCf5CBtRNU4HKs63my5mkHiGqTfnNEE,489
|
|
34
34
|
maya_umbrella/vaccines/vaccine2.py,sha256=qYiI_-BSojgN7j4esYCGBDLeyBSneDOGUwZhKHccxh8,2170
|
|
35
35
|
maya_umbrella/vaccines/vaccine3.py,sha256=vcjGt0jZxBDb7iCUMmBWBQGPZD3BFH96gL6pPxNwDr0,3676
|
|
36
|
-
maya_umbrella-0.14.
|
|
37
|
-
maya_umbrella-0.14.
|
|
38
|
-
maya_umbrella-0.14.
|
|
39
|
-
maya_umbrella-0.14.
|
|
36
|
+
maya_umbrella-0.14.2.dist-info/LICENSE,sha256=tJf0Pz8q_65AjEkm3872K1cl4jGil28vJO5Ko_LhUqc,1060
|
|
37
|
+
maya_umbrella-0.14.2.dist-info/METADATA,sha256=U5BOnzsheso13RpGbApuxgWrkrJuYrmRg1WHVlfu2dc,15755
|
|
38
|
+
maya_umbrella-0.14.2.dist-info/WHEEL,sha256=IrRNNNJ-uuL1ggO5qMvT1GGhQVdQU54d6ZpYqEZfEWo,92
|
|
39
|
+
maya_umbrella-0.14.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|