maya-umbrella 0.14.0__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/vaccines/vaccine3.py +3 -1
- {maya_umbrella-0.14.0.dist-info → maya_umbrella-0.14.2.dist-info}/METADATA +83 -8
- {maya_umbrella-0.14.0.dist-info → maya_umbrella-0.14.2.dist-info}/RECORD +6 -6
- {maya_umbrella-0.14.0.dist-info → maya_umbrella-0.14.2.dist-info}/LICENSE +0 -0
- {maya_umbrella-0.14.0.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,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
|
-
|
|
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,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: maya_umbrella
|
|
3
|
-
Version: 0.14.
|
|
4
|
-
Summary:
|
|
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:
|
|
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
|
-
|
|
26
|
+

|
|
27
27
|
|
|
28
28
|
[](https://img.shields.io/pypi/pyversions/maya-umbrella)
|
|
29
29
|
[](https://github.com/wntrblm/nox)
|
|
@@ -43,9 +43,11 @@ 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
|
+
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-
|
|
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
|
-
|
|
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
|
-
|
|
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,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
|
|
@@ -32,8 +32,8 @@ maya_umbrella/vaccine.py,sha256=aBW6pdT4tD4OMBPZ-d3E4_n16Rylz-2gb7JWzMZVPK0,1022
|
|
|
32
32
|
maya_umbrella/vaccines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
33
|
maya_umbrella/vaccines/vaccine1.py,sha256=WLo1uJElTLSjVCf5CBtRNU4HKs63my5mkHiGqTfnNEE,489
|
|
34
34
|
maya_umbrella/vaccines/vaccine2.py,sha256=qYiI_-BSojgN7j4esYCGBDLeyBSneDOGUwZhKHccxh8,2170
|
|
35
|
-
maya_umbrella/vaccines/vaccine3.py,sha256=
|
|
36
|
-
maya_umbrella-0.14.
|
|
37
|
-
maya_umbrella-0.14.
|
|
38
|
-
maya_umbrella-0.14.
|
|
39
|
-
maya_umbrella-0.14.
|
|
35
|
+
maya_umbrella/vaccines/vaccine3.py,sha256=vcjGt0jZxBDb7iCUMmBWBQGPZD3BFH96gL6pPxNwDr0,3676
|
|
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
|