
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
魔云腾SDK通用包 - 用于自动下载、管理和启动MYT SDK
MYT SDK是一个Python包,用于简化MYT SDK的下载、安装和启动过程。它会自动检测系统中是否已安装SDK,如果没有则从指定URL下载并解压到用户缓存目录,然后启动SDK进程。
pip install myt-sdk
git clone https://github.com/moyunteng/myt-sdk.git
cd myt-sdk
pip install -e .
# 基本初始化
myt-sdk init
# 强制重新下载
myt-sdk init --force
# 只下载不启动
myt-sdk init --no-start
# 使用自定义缓存目录
myt-sdk init --cache-dir /path/to/cache
# 启用详细日志
myt-sdk init --verbose
myt-sdk status
from py_myt import MYTSDKManager
# 创建SDK管理器
sdk_manager = MYTSDKManager()
# 检查SDK状态
status = sdk_manager.get_status()
print(f"SDK已安装: {status['installed']}")
print(f"SDK正在运行: {status['running']}")
# 初始化SDK
result = sdk_manager.init()
print(f"初始化结果: {result}")
from py_myt import create_client
from py_myt.exceptions import MYTSDKError
# 创建API客户端
client = create_client(base_url="http://192.168.1.100:5000")
try:
# 容器管理
containers = client.get_containers(ip="192.168.1.100")
print(f"容器列表: {containers}")
# 创建Android容器
result = client.create_android_container(
ip="192.168.1.100",
index=1,
name="my_container",
image_addr="android_image"
)
print(f"容器创建结果: {result}")
# 设置摄像头推流
client.set_camera_stream(
ip="192.168.1.100",
name="my_container",
v_type=1, # RTMP流
resolution=1, # 1920x1080@30
addr="rtmp://live.example.com/stream"
)
# 配置S5代理
client.set_s5_connection(
ip="192.168.1.100",
name="my_container",
s5ip="127.0.0.1",
s5port="1080",
s5user="username",
s5pwd="password"
)
except MYTSDKError as e:
print(f"API调用失败: {e}")
# 运行所有测试
pytest
# 运行特定测试文件
pytest tests/test_api_client.py
pytest tests/test_new_api_methods.py
# 运行测试并显示覆盖率
pytest --cov=py_myt
black py_myt/
mypy py_myt/
flake8 py_myt/
MIT License
欢迎提交Issue和Pull Request!
FAQs
MYT SDK - 魔云腾SDK通用包,用于自动下载、管理和启动MYT SDK,支持完整的API客户端功能
We found that myt-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.