You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simplelayout-aoweiie

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplelayout-aoweiie

a simple layout generator project

1.0.0
Source
pipPyPI
Maintainers
1

Work in Repl.it

simplelayout-generator

本次作业将实现生成器的数据生成部分,也就是 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
    

参考

评分标准

要点分值
代码规范1
generate_matrix()2
main()2
save_matrix()1
save_fig()1
make_dir()1
总分8

Keywords

layout

FAQs

Did you know?

Socket

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.

Install

Related posts