Skip to main content

Generate UML diagrams from source code

Project description

code2uml

将代码转为UML图

输入目录或者文件,输出UML图

根据antlr4完成目前的代码,实现功能:

  1. 支持目录或者单个文件的输入,或者代码段(代码段时必须指定语言类型)
  2. 根据文件名自动识别为C++或者java语言,或者可以通过参数指定语言类型
  3. 根据文件内容自动识别为类、函数、变量、常量、方法等,将其转换成中间语言
  4. 根据中间语言生成plantuml或者mermaid的UML类图
  5. 对于代码段,必须在调用时指定语言类型

编译

使用方法

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code2uml-0.1.tar.gz (226.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code2uml-0.1-py3-none-any.whl (150.7 kB view details)

Uploaded Python 3

File details

Details for the file code2uml-0.1.tar.gz.

File metadata

  • Download URL: code2uml-0.1.tar.gz
  • Upload date:
  • Size: 226.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for code2uml-0.1.tar.gz
Algorithm Hash digest
SHA256 039e508973ac1c918c5493f4666fceb2b174753029a357f01a00d7e4eef6912a
MD5 bcde6d0b2be62a60fc6e46b4d3d11f73
BLAKE2b-256 a2ae4e5ca668efca12c3044c5dd4f77df3d84c85a90c06511ccd92c522f6d8ed

See more details on using hashes here.

File details

Details for the file code2uml-0.1-py3-none-any.whl.

File metadata

  • Download URL: code2uml-0.1-py3-none-any.whl
  • Upload date:
  • Size: 150.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for code2uml-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 462b2158cdab955ddcd1f0a64c6210ca10790ec509e6ba0d8fd76e6f276a0f87
MD5 0a79d00f7cb0f1a78bdb18a09dd8314c
BLAKE2b-256 37fdb57797bace5756f250d853e953b62b3891fe79ce9e6310b8e7071b055aca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page