Skip to main content

java2uml

从 .java 源码(不解析字节码)生成 PlantUML 类图文本,或导出可在 StarUML 中打开的 .mdj 模型。解析基于 javalang。

环境: Python 3.11 及以上。

安装

pip install java2uml

使用

java2uml <路径> -f plantuml              # 默认;结果打到标准输出
java2uml <路径> -f plantuml -o out.puml   # 写入文件
java2uml <路径> -f mdj -o model.mdj       # StarUML;不写 -o 时默认为 output.mdj
java2uml <路径> -f mdj -v                 # -v:逐个文件打印解析情况
java2uml --help

<路径> 为单个 .java 文件或目录(递归扫描)。-f staruml 与 -f mdj 相同。

兼容旧命令:java2plantuml、java2staruml(仍由本包提供)。

说明

支持多文件、包、类 / 接口 / 枚举、字段与方法及常见关系;复杂语法与内部类等可能不完整。.mdj 为模型层,在 StarUML 里需自行建图或拖入类。

Metadata

Release files for java2uml 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for java2uml 0.3.0
File Interpreter ABI Platform Actions
java2uml-0.3.0-py3-none-any.whl Python 3 none any Details for java2uml-0.3.0-py3-none-any.whl

Release files / java2uml-0.3.0-py3-none-any.whl

Download URL java2uml-0.3.0-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf18399e40cb7a955f575b8256370e2dc62f8d8e8532fd48432f7b7826bcd8ba
BLAKE2b-256 checksum
How to use checksums
72db20dd17b8a3a6aa3c72a6c40b1cfadbc10be96ebbe3bd94300ad1d4bf3da6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Security for java2uml 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page