Pygerber

Latest version: v2.4.0

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

Scan your dependencies

Page 1 of 2

2.4.0

- Added command line interface utilizing API V2 for rendering Gerber files to images.
This includes interface for rendering PNG, JPEG and SVG images and multi-file projects
to single PNG/JPEG image.
- Added support for inferring file type from file extension or `.FileFunction` file
attribute. This mechanism is used by default by API V2 based command line interface.
- Refactored test suite and dropped testing of code related to `Parser` class originally
included in `PyGerber` 2.0.0. Currently only `Parser2` related code is actively
tested.

2.3.2

- Fixed clockwise arc rendering in raster renderer. Reported by tgbl-mk (203). Fixed
by Argmaster in 205.
- Fixed empty comment parsing. Reported by lookme2 (198). Fixed by Argmaster in 201.
- Disabled MacOS test suite due to consistent failures during Python installation on
`macos-latest` GitHub hosted machines.

2.3.1

- Added support for rotation of code 21 center line macro primitive in SVG and Raster
renderers. Support is not exhaustive, it will be extended whenever extension is
requested by users.
- Fixed bug causing macro flashes to be partially cut off in images rendered with SVG
renderer.
- Fixed incorrect version string in `pygerber.__version__` and reported by
`pygerber --version`.

2.3.0

- Added full support for transforms (LP, LM, LR, LS commands) in Parser2.
- Fixed titles in Parser2 and Parser feature support documentation. They were swapped.
- Fixed bug causing SvgRenderer2 to incorrectly render masks in some cases.
- Optimized SvgRenderer2 group and mask usage to reduce file size and memory usage of
software displaying output SVGs.
- Fixed parsing of attributes without value.
- Updated documentation to mention deprecation of API V1 elements and changed order of
pages to better expose API V2.
- Added example files shipped with PyGerber for testing and demonstration purposes. They
can be accessed via `pygerber.examples` module.
- Added new `pygerber.gerberx3.api.v2` module with new high level utilizing API V2
capabilities. This module is mend to replace API V1 in future releases.
- Added new API for rendering multiple Gerber files at once into single image. Available
as part of `pygerber.gerberx3.api.v2` module with use of `Project` class.

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.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.