Compressor
openzl.ext.Type
Bases: enum.Enum
Numeric = 4
class-attribute
Serial = 1
class-attribute
String = 8
class-attribute
Struct = 2
class-attribute
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
openzl.ext.TypeMask
Bases: enum.Flag
Any = 15
class-attribute
None_ = TypeMask.None_
class-attribute
Numeric = 4
class-attribute
Serial = 1
class-attribute
String = 8
class-attribute
Struct = 2
class-attribute
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
openzl.ext.NodeID
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
__init__(*args, **kwargs)
method descriptor
Initialize self. See help(type(self)) for accurate signature.
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
openzl.ext.GraphID
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
__init__(*args, **kwargs)
method descriptor
Initialize self. See help(type(self)) for accurate signature.
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
openzl.ext.Compressor
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
UnmetDependencies
__module__ = 'openzl.ext'
class-attribute
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to 'utf-8'. errors defaults to 'strict'.
graph_names
property
(self) -> list[str]
node_names
property
(self) -> list[str]
__init__(*args, **kwargs)
method descriptor
Initialize self. See help(type(self)) for accurate signature.
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
__init__()
method descriptor
init(self) -> None
__new__(*args, **kwargs)
builtin
Create and return a new object. See help(type) for accurate signature.
build_static_graph()
method descriptor
build_static_graph(self, head_node: openzl.ext.NodeID, successor_graphs: collections.abc.Sequence[openzl.ext.GraphID], *, name: str | None = None, local_params: openzl.ext.LocalParams | None = None) -> openzl.ext.GraphID
deserialize()
method descriptor
deserialize(self, serialized: bytes) -> None
get_graph()
method descriptor
get_graph(self, name: str) -> openzl.ext.GraphID | None
get_node()
method descriptor
get_node(self, name: str) -> openzl.ext.NodeID | None
get_parameter()
method descriptor
get_parameter(self, arg: openzl.ext.CParam, /) -> int
get_unmet_dependencies()
method descriptor
get_unmet_dependencies(self, serialized: bytes) -> openzl.ext.Compressor.UnmetDependencies
parameterize_graph()
method descriptor
parameterize_graph(self, graph: openzl.ext.GraphID, *, name: str | None = None, custom_graphs: collections.abc.Sequence[openzl.ext.GraphID] | None = None, custom_nodes: collections.abc.Sequence[openzl.ext.NodeID] | None = None, local_params: openzl.ext.LocalParams | None = None) -> openzl.ext.GraphID
parameterize_node()
method descriptor
parameterize_node(self, node: openzl.ext.NodeID, *, name: str | None = None, local_params: openzl.ext.LocalParams | None = None) -> openzl.ext.NodeID
register_custom_encoder()
method descriptor
register_custom_encoder(self, arg: openzl.ext.CustomEncoder, /) -> openzl.ext.NodeID
register_function_graph()
method descriptor
register_function_graph(self, arg: openzl.ext.FunctionGraph, /) -> openzl.ext.GraphID
register_selector_graph()
method descriptor
register_selector_graph(self, arg: openzl.ext.Selector, /) -> openzl.ext.GraphID
select_starting_graph()
method descriptor
select_starting_graph(self, graph: openzl.ext.GraphID) -> None
serialize()
method descriptor
serialize(self) -> bytes
serialize_to_json()
method descriptor
serialize_to_json(self) -> str
set_parameter()
method descriptor
set_parameter(self, arg0: openzl.ext.CParam, arg1: int, /) -> None