
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).
simplelayout-aoweiie
Advanced tools
本次作业将实现生成器的数据生成部分,也就是 1-simplelayout-cli 中的主要逻辑部分。同时考察 package、module 的相关知识。
simplelayout
│ ├─cli
│ │ └─__init__.py
│ │ └─cli_generate.py
│ ├─generator
│ │ └─__init__.py
│ │ └─core.py
│ │ └─utils.py
符合 PEP 8 代码规范
将所需第三方 package 放到 requirements.txt
中
按照 TODO
提示完成相应功能点
/simplelayout/cli/cli_generate.py
/simplelayout/cli/__init__.py
/simplelayout/generator/core.py
/simplelayout/generator/utils.py
/simplelayout/__main__.py
通过相应单元测试
目标:将simplelayout
以脚本方式运行,接口参数与作业 1-simplelayout-CLI
一致,即
python -m simplelayout --board_grid 100 --unit_grid 10 --unit_n 3 --positions 1 15 33 --outdir dir1/dir2 --file_name example
__main__
要点 | 分值 |
---|---|
代码规范 | 1 |
generate_matrix() | 2 |
main() | 2 |
save_matrix() | 1 |
save_fig() | 1 |
make_dir() | 1 |
总分 | 8 |
FAQs
a simple layout generator project
We found that simplelayout-aoweiie 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.