Skip to main content

Diagram Tool

Description

Python script for creating UML diagrams from source code.

  • Can parse multiple languages:
    • Python
    • Javascript (not yet implemented)
    • Typescript (not yet implemented)
  • Generate a SVG file with the diagram

Usage

Command Line

Use diagramTool command to generate the diagram.

diagramTool [options] <source> <output>

Options

use diagramTool --help to see the available options:

usage: DiagramTool [-h] [--debug] [--dump] [--save-ast] source output

create a class diagram from source code

positional arguments:
  source      source code main file
  output      output file

options:
  -h, --help  show this help message and exit
  --debug     print debug information
  --dump      dump parsed data to stdout
  --save-ast  save ast to file

From Python

import diagramTool as dt

dt.fromSource(source, output, save_ast=False, dump=False, showBorder=False)

Example

Example

Class diagram of this project generated with the tool.

Metadata

Release files for DiagramTool 1.0.2

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

Source distribution (sdist)

Source distribution for DiagramTool 1.0.2
File Size Uploaded Provenance
diagramtool-1.0.2.tar.gz 11.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 26.4 kB

Release files / diagramtool-1.0.2.tar.gz

Download URL diagramtool-1.0.2.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c7f184f3fa950caf71965394a0c63056d9584b6e3c0039d216b8feeec9df93bf
BLAKE2b-256 checksum
How to use checksums
bed1465559878557f200a3a5ffc49422d9e24cafeb0d4087970e3a38b5942ab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / DiagramTool-1.0.2-py3-none-any.whl

Download URL DiagramTool-1.0.2-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
908ece09d045cac9c039e4ff2fafda4c7befdb525525fed7a403841353b3d7ec
BLAKE2b-256 checksum
How to use checksums
f12ccb650292b385626f0b0a6e94772a7549e54feefa6e3184a3555d457e87c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Security for DiagramTool 1.0.2

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.

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