PlotterConfig

class PlotterConfig(name, paper_configs, plotter_unit_length, pen_count, info='')

Data class containing configuration for a given plotter type.

Methods

__delattr__

Attached to frozen classes as __delattr__.

__eq__

Method generated by attrs for class PlotterConfig.

__ge__

Method generated by attrs for class PlotterConfig.

__gt__

Method generated by attrs for class PlotterConfig.

__hash__

Method generated by attrs for class PlotterConfig.

__init__

Method generated by attrs for class PlotterConfig.

__le__

Method generated by attrs for class PlotterConfig.

__lt__

Method generated by attrs for class PlotterConfig.

__ne__

Method generated by attrs for class PlotterConfig.

__repr__

Method generated by attrs for class PlotterConfig.

__setattr__

Attached to frozen classes as __setattr__.

from_config

rtype

PlotterConfig

paper_config

Return the paper configuration for paper or none if not found.

paper_config_from_size

Look for a paper configuration matching paper_format and return it if found.

Attributes

__annotations__

__attrs_attrs__

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

Methods

PlotterConfig.__delattr__(name)

Attached to frozen classes as __delattr__.

PlotterConfig.__eq__(other)

Method generated by attrs for class PlotterConfig.

PlotterConfig.__ge__(other)

Method generated by attrs for class PlotterConfig.

PlotterConfig.__gt__(other)

Method generated by attrs for class PlotterConfig.

PlotterConfig.__hash__()

Method generated by attrs for class PlotterConfig.

PlotterConfig.__init__(name, paper_configs, plotter_unit_length, pen_count, info='')

Method generated by attrs for class PlotterConfig.

PlotterConfig.__le__(other)

Method generated by attrs for class PlotterConfig.

PlotterConfig.__lt__(other)

Method generated by attrs for class PlotterConfig.

PlotterConfig.__ne__(other)

Method generated by attrs for class PlotterConfig.

PlotterConfig.__repr__()

Method generated by attrs for class PlotterConfig.

PlotterConfig.__setattr__(name, value)

Attached to frozen classes as __setattr__.

classmethod PlotterConfig.from_config(data)
Return type

PlotterConfig

PlotterConfig.paper_config(paper)

Return the paper configuration for paper or none if not found.

Parameters

paper (str) -- desired paper format designator

Return type

Optional[PaperConfig]

Returns

the PaperConfig instance corresponding to paper or None if not found

PlotterConfig.paper_config_from_size(page_size)

Look for a paper configuration matching paper_format and return it if found.

Parameters

page_size (Optional[Tuple[float, float]]) -- tuple of desired page size (may be None, in which case None is returned

Return type

Optional[PaperConfig]

Returns

the PaperConfig instance corresponding to paper_format or None if not found

Attributes

PlotterConfig.__annotations__ = {'info': <class 'str'>, 'name': <class 'str'>, 'paper_configs': typing.List[vpype.config.PaperConfig], 'pen_count': <class 'int'>, 'plotter_unit_length': <class 'float'>}
PlotterConfig.__attrs_attrs__ = (Attribute(name='name', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='paper_configs', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=typing.List[vpype.config.PaperConfig], converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='plotter_unit_length', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'float'>, converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='pen_count', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='info', default='', validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None))
PlotterConfig.__dict__ = mappingproxy({'__module__': 'vpype.config', '__annotations__': {'name': <class 'str'>, 'paper_configs': typing.List[vpype.config.PaperConfig], 'plotter_unit_length': <class 'float'>, 'pen_count': <class 'int'>, 'info': <class 'str'>}, '__doc__': 'Data class containing configuration for a given plotter type.', 'from_config': <classmethod object>, 'paper_config': <function PlotterConfig.paper_config>, 'paper_config_from_size': <function PlotterConfig.paper_config_from_size>, '__dict__': <attribute '__dict__' of 'PlotterConfig' objects>, '__weakref__': <attribute '__weakref__' of 'PlotterConfig' objects>, '__attrs_attrs__': (Attribute(name='name', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='paper_configs', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=typing.List[vpype.config.PaperConfig], converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='plotter_unit_length', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'float'>, converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='pen_count', default=NOTHING, validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None), Attribute(name='info', default='', validator=None, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None)), '__setattr__': <function _frozen_setattrs>, '__delattr__': <function _frozen_delattrs>, '__repr__': <function PlotterConfig.__repr__>, '__eq__': <function PlotterConfig.__eq__>, '__ne__': <function PlotterConfig.__ne__>, '__lt__': <function PlotterConfig.__lt__>, '__le__': <function PlotterConfig.__le__>, '__gt__': <function PlotterConfig.__gt__>, '__ge__': <function PlotterConfig.__ge__>, '__hash__': <function PlotterConfig.__hash__>, '__init__': <function PlotterConfig.__init__>})
PlotterConfig.__doc__ = 'Data class containing configuration for a given plotter type.'
PlotterConfig.__module__ = 'vpype.config'
PlotterConfig.__weakref__

list of weak references to the object (if defined)