Python parser for Gerber and NC Drill Files
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_gerber-0.1.0.tar.gz
(12.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_gerber-0.1.0.tar.gz.
File metadata
- Download URL: python_gerber-0.1.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1810071686309b5b5b8b9f5853c49a38a11fef0ef7250b79e223c18f07ceaac
|
|
| MD5 |
c928836ba403d433108f03b5a8d5cf1a
|
|
| BLAKE2b-256 |
20864f2333117be0ecf593f2b127feee4efddfff50651f5250f8d96fd088866b
|
File details
Details for the file python_gerber-0.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: python_gerber-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a717cb99b9650fe0431a8661c7c3129d6017be0d94540059c6e4f6a4c1b44fb
|
|
| MD5 |
a35ca41e5e8282f0adeb37aae66d91f0
|
|
| BLAKE2b-256 |
5462e66c2fb45c75a93bfc9213cbd637b541bb06c001d4b1c547ad59bc1fa1bd
|