본문 바로가기
언어 정리/python_lib,일급함수

pylint - 해당 lib로 클래스 다이어그램 만들기

by 알 수 없는 사용자 2022. 7. 20.

 

https://bhavaniravi.com/blog/generate-uml-diagrams-from-python-code/

 

How to Generate UML Diagrams from Python Source Code?

Trust me code moves faster than the digrams that you created for the documentation. How about a Python tool that you can add to your CI/CD pipeline that generates UML diagram for each version of your code?

bhavaniravi.com

 


설치 : pip install pylint

 

방법 : pyreverse -o 확장자명 폴더혹은경로명

ex) pyreverse -o png ./src

 

비고 : __init__.py 없다는 에러 떴는데 , __init__으로 파이썬 패키지 인식을 하기 때문이다. .py있는 디렉토리마다 __init__.py 파일을 생성해두면 됨.(빈파일로 해도 ㄱㅊ)

 

댓글