Skip to content

Programing Python Tools #90

Open
Open

Description

@junxnone

工具

代码分析工具

  • bandit
  • pylint
  • yapf
Name History Type Description
pylint 2003 - ~ analysis PyCQA
- 2015 analysis --> PyCQA
bandit 2018 - ~ security OpenStack --> PyCQA
yapf formatter Google

analysis - static code analysis

代码Debug 工具

  • pdb/ipdb
  • PySnooper : 以装饰器的形式打印函数运行过程中运行了哪些代码行
    • 运行时变量的值及运行的时间(时间应该不是太准确,有打印操作)
    • 支持监控指定函数变量
    • 支持只 debug 某段 code
    • 支持输出log到文件
  • Python Tutor: 代码虚拟图形分析,也可以分析 Java/JS/C/C++
  • futurecoder: 集成 snoop/Python Tutor...
  • heartrate 浏览器实时显示代码的执行次数
  • birdseye: 浏览器查看执行过的 code stack data
  • py-spy

性能分析

Config Tools

  • Argparse python 内置的简单的命令行输入
  • hydra
  • omegaconf

Web Tools

  • Streamlit: 基于 Python 的 Web 应用程序框架, 可以在短时间内开发机器学习 (ML) 可视化仪表板
  • Gradio: 快速开发 Web App

日期时间工具

  • datetime
  • calendar
  • time

系统信息工具

  • psutil: 获取系统硬件信息
  • py-cpuinfo: CPU 相关信息(类似于 lscpu), 获取内容为 dict

进度条工具

  • tqdm

打包工具

打包成 whl

  • setuptools
  • wheel

打包成可执行文件

  • pyinstaller
  • nuitka

Activity

  1. changed the title [-]Python Code Analysis - 代码分析[/-] [+]python - Code Analysis - 代码分析[/+] on May 6, 2020
  2. changed the title [-]python - Code Analysis - 代码分析[/-] [+]Python code analysis tools[/+] on Mar 28, 2022
  3. transferred this issue fromjunxnone/exampleson Mar 28, 2022
  4. changed the title [-]Python code analysis tools[/-] [+]Programing Python CodeAnalysis[/+] on Dec 22, 2022
  5. transferred this issue fromjunxnone/techwikion Dec 22, 2022
  6. changed the title [-]Programing Python CodeAnalysis[/-] [+]Programing Python Tools CodeAnalysis[/+] on Apr 23, 2024
  7. changed the title [-]Programing Python Tools CodeAnalysis[/-] [+]Programing Python Tools[/+] on Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions