Metadata-Version: 2.1
Name: xsdata-plantuml
Version: 24.3
Summary: xsdata PlantUML generator
Author-email: Christodoulos Tsoulloftas <chris@komposta.net>
License: MIT
Project-URL: Source, https://github.com/tefra/xsdata-plantuml
Keywords: xsd,wsdl,schema,dtd,plantuml,generator,cli
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Code Generators
Classifier: Topic :: Text Processing :: Markup :: XML
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: xsdata[cli]>=24.3
Provides-Extra: test
Requires-Dist: codecov; extra == "test"
Requires-Dist: lxml; extra == "test"
Requires-Dist: pre-commit; extra == "test"
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-cov; extra == "test"

# [xsdata](https://pypi.org/project/xsdata/) - PlantUML plugin

Generate [PlantUML](https://plantuml.com/class-diagram) class diagrams from xml schemas,
wsdl definitions and directly from xml documents.

[![image](https://github.com/tefra/xsdata-plantuml/workflows/tests/badge.svg)](https://github.com/tefra/xsdata-plantuml/actions)
[![image](https://codecov.io/gh/tefra/xsdata-plantuml/branch/main/graph/badge.svg)](https://codecov.io/gh/tefra/xsdata-plantuml)
[![image](https://www.codefactor.io/repository/github/tefra/xsdata-plantuml/badge)](https://www.codefactor.io/repository/github/tefra/xsdata-plantuml)
[![image](https://img.shields.io/pypi/pyversions/xsdata-plantuml.svg)](https://pypi.org/pypi/xsdata-plantuml/)
[![image](https://img.shields.io/pypi/v/xsdata-plantuml.svg)](https://pypi.org/pypi/xsdata-plantuml/)

---

## Usage

```console
$ pip install xsdata-plantuml

$ xsdata samples/order.xsd --output plantuml --package samples
```

```
@startuml

class Items {
    +item : item[]
}
Items +-- item
class item {
    +productName : string
    +quantity : positiveInteger
    +USPrice : decimal
    +comment : comment
    +shipDate : date
    +partNum : string
}
class PurchaseOrderType {
    +shipTo : USAddress
    +billTo : USAddress
    +comment : comment
    +items : Items
    +orderDate : date
}
class USAddress {
    +name : string
    +street : string
    +city : string
    +state : string
    +zip : decimal
    +country : NMTOKEN
}
class comment {
    +value : string
}
class purchaseOrder {
}
purchaseOrder *- PurchaseOrderType

@enduml
```

![order.svg](https://github.com/tefra/xsdata-plantuml/raw/main/samples/order.svg)
