pygerber.parser package

Subpackages

Submodules

pygerber.parser.parser module

class pygerber.parser.parser.AbstractParser(ignore_deprecated: bool = True)[source]

Bases: abc.ABC

apertureSet: pygerber.renderer.apertureset.ApertureSet
parse(source_string: str, file_path: str = '<string>')[source]
parse_file(file_path: str)[source]
abstract save(file_path: str, format: Optional[str] = None) None[source]
tokenizer: pygerber.tokenizer.Tokenizer

pygerber.parser.project_spec module

class pygerber.parser.project_spec.LayerSpecBase[source]

Bases: abc.ABC

abstract static load(contents: Dict) pygerber.parser.project_spec.LayerSpecBase[source]
class pygerber.parser.project_spec.ProjectSpecBase(init_spec: Dict)[source]

Bases: abc.ABC

abstract property LayerSpecClass: pygerber.parser.project_spec.LayerSpecBase
classmethod from_json(file_path: str) pygerber.parser.project_spec.ProjectSpecBase[source]
classmethod from_toml(file_path: str) pygerber.parser.project_spec.ProjectSpecBase[source]
classmethod from_yaml(file_path: str) pygerber.parser.project_spec.ProjectSpecBase[source]
abstract render() Optional[Any][source]

Module contents