Readme
Purpose
A Python library for writing Gerber files.
The API is much simpler than the Gerber format specification - 8 pages vs 200.
No need to read the 200 page Gerber format specification.
All common pad shapes are built-in.
User-defined pads shapes are easily created.
100% compliance with revision 2023.08 of the Gerber Layer Format Specification.
Conservative, robust output files.
Risky constructs failing in some buggy applications are avoided.
Standardized meta information for fabrication, such as which pads are vias.
Input parameters are checked for compliance with the Gerber spec.
Stateless input (the gerber_writer takes care of the Gerber states).
Example:
from gerber_writer import DataLayer, Circle, RoundedRectangle
trace_width = 0.127
via_pad = Circle(0.508, 'ViaPad')
IC17_toe = RoundedRectangle(1.257, 2.286, 0.254, 'SMDPad,CuDef')
toe_point = (0, 2.54)
via_point = (5.08, 0)
top = DataLayer('Copper,L1,Top,Signal')
top.add_pad(IC17_toe, toe_point, angle=45)
top.add_trace_line(toe_point, (2.54, 0), trace_width, 'Conductor')
top.add_trace_line((2.54, 0), via_point, trace_width, 'Conductor')
top.add_pad(via_pad, via_point)
with open('gerbers\gerber_writer_example_small.gbr', 'w') as outfile:
top.dump_gerber(outfile)
Installation
Windows:
$ py -m pip install gerber_writer
Linux:
$ python3 -m pip install gerber_writer
Requirements
Python 3.9 or higher
Standard library only.
OS independent.
License
Apache 2.0 license
Contact
Metadata
Release files for gerber-writer 0.4.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gerber_writer-0.4.3.3.tar.gz | 26.6 kB | Without provenance | Details for gerber_writer-0.4.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gerber_writer-0.4.3.3-py3-none-any.whl | Python 3 | none | any | Details for gerber_writer-0.4.3.3-py3-none-any.whl |
Total release size: 52.5 kB
Release files / gerber_writer-0.4.3.3.tar.gz
| Download URL | gerber_writer-0.4.3.3.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebd6a8608695b105131cf95fd64d8202bcea7dc06fba52f4da95cd599d6120df
|
|
BLAKE2b-256 checksum How to use checksums |
498a9f22da0ed87334c9e76775ce5cb5cd6e01c44af68df690441bbaf3cd0133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / gerber_writer-0.4.3.3-py3-none-any.whl
| Download URL | gerber_writer-0.4.3.3-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
712eed1b3ef5c1a049c371f700b2dd78baa121a94b1d5583dfef4e4aefaa9d11
|
|
BLAKE2b-256 checksum How to use checksums |
c4811da7d7d021ef741d7f72335a2633bf9afd082f1a7679c82dddb02630dcf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for gerber-writer 0.4.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.