Python API reference
These interfaces operate on loaded CWL process objects. For a complete calling example, see Render with Python.
Converter APIs
Convert a CWL, given its document model, to a PlantUML diagram.
| Parameters: |
|
|---|
Source code in src/cwl2puml/__init__.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
Bases: Enum
The supported PlantUML diagram types
Source code in src/cwl2puml/__init__.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
ACTIVITY = auto()
class-attribute
instance-attribute
Represents the PlantUML `activity' diagram
CLASS = auto()
class-attribute
instance-attribute
Represents the PlantUML `class' diagram
COMPONENT = auto()
class-attribute
instance-attribute
Represents the PlantUML `components' diagram
OGC_PROCESSES_INPUTS = auto()
class-attribute
instance-attribute
Represents the PlantUML `JSON' diagram for OGC API Processes - Process description inputs
OGC_PROCESSES_OUTPUTS = auto()
class-attribute
instance-attribute
Represents the PlantUML `JSON' diagram for OGC API Processes - Process description outputs
SEQUENCE = auto()
class-attribute
instance-attribute
Represents the PlantUML `sequence' diagram
STATE = auto()
class-attribute
instance-attribute
Represents the PlantUML `state' diagram
Serialize the process inputs as indented OGC API Processes JSON.
Source code in src/cwl2puml/__init__.py
162 163 164 | |
Serialize the process outputs as indented OGC API Processes JSON.
Source code in src/cwl2puml/__init__.py
167 168 169 | |
Plugin registration
Converts a CWL, given its document model, to PlantUML diagram(s).
Source code in src/cwl2puml/plugin.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
Options
Bases: BaseModel
Options accepted by the cwl2puml plugin.
Source code in src/cwl2puml/plugin.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |