penman¶
Penman graph library.
For basic usage, and to retain some backward compatibility with early
versions, some functionality is available from the top-level
penman
module. For the rest, please use the standard API
available via the submodules.
Submodules¶
Data Structures¶
penman.epigraph – Base classes for epigraphical markers
penman.graph – Classes for pure graphs
penman.model – Class for defining semantic models
penman.models – Pre-defined models
penman.surface – Classes for surface alignments
penman.tree – Classes for trees
Serialization¶
penman.codec – Codec class for reading and writing PENMAN data
penman.layout – Conversion between trees and graphs
penman.lexer – Low-level parsing of PENMAN data
Other¶
penman.exceptions – Exception classes
penman.interface – Functional interface to a codec
penman.transform – Graph and tree transformation functions
Module Constants¶
-
penman.
__version__
¶ The software version string.
-
penman.
__version_info__
¶ The software version as a tuple.
Classes¶
-
class
penman.
Triple
[source]¶ Alias of
penman.graph.Triple
.
-
class
penman.
Graph
[source]¶ Alias of
penman.graph.Graph
.
-
class
penman.
PENMANCodec
[source]¶ Alias of
penman.codec.PENMANCodec
.
Module Functions¶
-
penman.
decode
()[source]¶ Alias of
penman.interface.decode
.
-
penman.
loads
()[source]¶ Alias of
penman.interface.loads
.
-
penman.
load
()[source]¶ Alias of
penman.interface.load
.
-
penman.
encode
()[source]¶ Alias of
penman.interface.encode
.
-
penman.
dumps
()[source]¶ Alias of
penman.interface.dumps
.
-
penman.
dump
()[source]¶ Alias of
penman.interface.dump
.
Exceptions¶
-
exception
penman.
PenmanError
[source]¶ Alias of
penman.exceptions.PenmanError
.
-
exception
penman.
DecodeError
[source]¶ Alias of
penman.exceptions.DecodeError
.