Module osbot_utils.graphs.mermaid.models.Mermaid__Diagram__Type

Expand source code
from enum import Enum

class Diagram__Type(Enum):
    class_diagram                = "class_diagram"
    entity_relationship_diagram  = "entity_relationship_diagram"
    flowchart                    = "flowchart"
    gantt                        = "gantt"
    git_graph                    = "git_graph"
    graph                        = "graph"
    mermaid_map                  = "mermaid_map"
    mindmap                      = "mindmap"
    pie_chart                    = "pie_chart"
    requirement_diagram          = "requirement_diagram"
    sequence_diagram             = "sequenceDiagram"             # these are different from the others
    state_diagram                = "stateDiagram-v2"             # these are different from the others
    user_journey                 = "user_journey"

Classes

class Diagram__Type (*args, **kwds)

Create a collection of name/value pairs.

Example enumeration:

>>> class Color(Enum):
...     RED = 1
...     BLUE = 2
...     GREEN = 3

Access them by:

  • attribute access:

Color.RED

  • value lookup:

Color(1)

  • name lookup:

Color['RED']

Enumerations can be iterated over, and know how many members they have:

>>> len(Color)
3
>>> list(Color)
[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]

Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.

Expand source code
class Diagram__Type(Enum):
    class_diagram                = "class_diagram"
    entity_relationship_diagram  = "entity_relationship_diagram"
    flowchart                    = "flowchart"
    gantt                        = "gantt"
    git_graph                    = "git_graph"
    graph                        = "graph"
    mermaid_map                  = "mermaid_map"
    mindmap                      = "mindmap"
    pie_chart                    = "pie_chart"
    requirement_diagram          = "requirement_diagram"
    sequence_diagram             = "sequenceDiagram"             # these are different from the others
    state_diagram                = "stateDiagram-v2"             # these are different from the others
    user_journey                 = "user_journey"

Ancestors

  • enum.Enum

Class variables

var class_diagram
var entity_relationship_diagram
var flowchart
var gantt
var git_graph
var graph
var mermaid_map
var mindmap
var pie_chart
var requirement_diagram
var sequence_diagram
var state_diagram
var user_journey