Skip to main content

Check and fix maya virus.

Project description

maya-umbrella

Python Version Nox PyPI Version Downloads Status Downloads License PyPI Format Maintenance maya-2024 maya-2023 maya-2022 maya-2021 maya-2020 maya-2019 maya-2018

All Contributors

Check and fix maya virus.

发开环境设置

python 版本 3.9

pip install nox poetry

开发调试

nox -s maya-2020

在maya中测试

通过nox -s maya-xxx, 启动maya. nox会动态根据你本地安装得maya去注册nox session, 比如你本地安装了maya-2020,那么通过nox -s maya-2018

启动maya后在脚本编辑器中执行下面得代码,就会动态的从<repo>/tests/virus/里面去open ma文件去进行测试.

import manual_test_in_maya

manual_test_in_maya.start()

增加新的疫苗

<repo>/maya_umbrella/vaccines/ 新建一个py, 因为有很多病毒没有具体的名字代号,我们统一以vaccine<id>.py 继承from maya_umbrella.vaccine import AbstractVaccine并且class名字叫Vaccine即可, 然后去写具体的收集病毒逻辑

代码检查

我们可以利用封装好的nox命令去执行进行代码检查

nox -s lint
nox -s black
nox -s isort

环境变量

我们可以通过下列环境变量去修改maya_umbrella的一些设置,方便有pipeline的公司可以更好的集成

修改maya umbrella的日志保存目录,默认是windows temp目录

MAYA_UMBRELLA_LOG_ROOT

修改maya umbrella的日志文件名称, 默认是maya_umbrella

MAYA_UMBRELLA_LOG_NAME

设置日志级别,默认是info, 可以是debug可以看到更多的日志信息

MAYA_UMBRELLA_LOG_LEVEL

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Hal
Hal

💻 🚇 ⚠️
hotwinter0
hotwinter0

⚠️ 💻
lingyunfx
lingyunfx

⚠️
yjjjj
yjjjj

⚠️ 💻

This project follows the all-contributors specification. Contributions of any kind are welcome!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maya_umbrella-0.4.0.tar.gz (13.1 kB view hashes)

Uploaded Source

Built Distribution

maya_umbrella-0.4.0-py2.py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page