Zum Inhalt

attrs

dsstools.attrs

Interaction between nx.NodeDataViews and imported attributes.

Category

Bases: LowercaseStrEnum

Enum providing for categorizing internal codes.

The following values are accepted: TEXT: Used for terms in text. This code is representative of a term found in a node text. MANUAL: Used for manually created codes in dssCode (or other sources).

MANUAL = auto() class-attribute instance-attribute

TEXT = auto() class-attribute instance-attribute

Code

Bases: NamedTuple

Helper tuple class for passing complex arguments as node attributes.

category: Category instance-attribute

term: str instance-attribute

__str__()

to_str()

Convert the code to string.