Python Gerber Library
This library provides a simple and elegant parser for Gerber and NC Drill files. It's written in pure Python and supports all Gerber commands, including most deprecated ones.
File Structure
.
├── pygerber
│ ├── aperture.py
│ ├── drill_layer.py
│ ├── gerber_layer.py
│ └── renderers
│ │ | # Renders a Gerber file as an SVG
│ │ └── svg.py
│ └── standards
│ │ # Enums of Gerber file format
│ ├── gerber.py
│ | # Enums of NC Drill file format
│ └── nc_drill.py
└── tests
| # All unit tests for this package
└── test_package.py
Features
- Gerber X2 file parser
- Reading gerber layer
- Writing gerber layer
- NC Drill file parser
- Reading X2 standard files
- Writing drill files
- API for drill operations
- API for rout operations
- SVG rendering
- Drill operations
- Linear rout operations
- Circular rout operations
- Gerber flash operations
- Gerber linear interpolations
- Gerber circular interpolations
Running Unit Tests
Place gerber files in the testdata folder and run the unit tests:
pytest
References
Metadata
Release files for python-gerber 0.1.0
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 | |
|---|---|---|---|---|
| python_gerber-0.1.0.tar.gz | 12.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_gerber-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 26.8 kB
Release files / python_gerber-0.1.0.tar.gz
| Download URL | python_gerber-0.1.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1810071686309b5b5b8b9f5853c49a38a11fef0ef7250b79e223c18f07ceaac
|
|
BLAKE2b-256 checksum How to use checksums |
20864f2333117be0ecf593f2b127feee4efddfff50651f5250f8d96fd088866b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / python_gerber-0.1.0-py2.py3-none-any.whl
| Download URL | python_gerber-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5a717cb99b9650fe0431a8661c7c3129d6017be0d94540059c6e4f6a4c1b44fb
|
|
BLAKE2b-256 checksum How to use checksums |
5462e66c2fb45c75a93bfc9213cbd637b541bb06c001d4b1c547ad59bc1fa1bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for python-gerber 0.1.0
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.