Pygerber

Latest version: v2.4.3

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 4

2.2.1

- Fixed rendering of first macro flash.
- Added reference page for SvgRenderer2 in docs.
- Fixed duplicated element prefixes in docs.
- Fixed supported feature counts in docs.
- Updated `README.md` feature support links.

2.2.0

- Added alternative parser implementation, `pygerber.gerberx3.parser2.parser2.Parser2`
class.
- Added introspection interface based on new Parser2 class.
- Added macro support to Parser2 class which was not previously available in Parser
class.
- Added API for customizing Token classes used by Tokenizer. `Tokenizer` class now
accepts optional `options` parameter of class `TokenizerOptions`.
- Added documentation for introspection.
- Added experimental SVG backend for Gerber code with Parser2 generated command buffers.
- Changed documentation layout to improve readability.
- Fixed switching to single quadrant mode being ignored.
- Refactored feature support documentation.

2.1.1

- Fixed incorrect bounding box prediction for displaced drawings (105).
- Added 3.12 as supported in package tags.
- Fixed documentation links in `README.md` and `pyproject.toml`.

2.1.0

- Fixed 37
- Added latest Gerber spec file revision 2023.08 to documentation.
- Added command line interface for PyGerber 2D rendering.
- Added Gerber X3/X2 language server which can be acquired with
`pip install pygerber[language-server]`. Currently server capabilities include hover
messages with Gerber reference cited and minimal amount of suggestions. We are
planning to further extend this server in future releases.
- Added `is-language-server-available` CLI command for checking if
`pygerber[language-sever]` is available.
- Added support for arc region boundaries (61).
- Added warning messages whenever zero surface flash is created.
- Improved documentation for many of supported Gerber commands. This documentation is
used by language server to provide specification reference.
- Refactored tokenizer implementation, as a result 67 was fixed and 64 is no longer an
issue in some cases.

2.0.2

- Fixed incorrect bounding box prediction for displaced drawings (105).
- Added 3.12 as supported in package tags.
- Fixed documentation links in `README.md` and `pyproject.toml`.

2.0.1

- Fixed names of Gerber specification files (`.pdf.pdf` extension replaced with `.pdf`)
- Added `draw_region_outlines` option (disabled by default) which controls whether lines
which make up a region boundary should be drawn after region is filled. KiCAD seem to
assume that those boundaries are not drawn and region outline is 1px instead of
thickness of aperture.
- Changed `Decimal` precision to 60 decimal places.
- Changed precision of `INCH_TO_MM_MULTIPLIER` (now its 25.4) and
`MM_TO_INCH_MULTIPLIER` (dynamically calculated with `Decimal`).
- Changed circle aperture to make result better match expectations and `KiCAD`
reference.
- Fixed warning message logged every time a valid region was created to show up only
when region is not valid.
- Added warnings for zero surface aperture draws.

Page 3 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.