Tools to handle Gerber and Excellon files in Python
Project description
gerbonara
Tools to handle Gerber and Excellon files in Python.
This repository is a friendly fork of phsilva's pcb-tools with extensions from opiopan integrated. We decided to fork pcb-tools since we need it as a dependency for gerbolyze and pcb-tools was sometimes very behind on bug fixes.
Installation
Arch Linux:
yay -S python-gerbonara
Python:
pip install gerbonara
Usage
Here's a simple example:
import gerbonara
from gerbonara.render import GerberCairoContext
# Read gerber and Excellon files
top_copper = gerbonara.read('example.GTL')
nc_drill = gerbonara.read('example.txt')
# Rendering context
ctx = GerberCairoContext()
# Create SVG image
top_copper.render(ctx)
nc_drill.render(ctx, 'composite.svg')
Made with ❤️ and 🐍.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
gerbonara-0.9.8-py3-none-any.whl
(95.6 kB
view hashes)
Close
Hashes for gerbonara-0.9.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6c6378e40ffd5d3848f3545c2dadbcea38758f8e9891df40c437561e1fff7df |
|
MD5 | a0d4828c275f977fe6a986e7a1ffc10e |
|
BLAKE2b-256 | b90f10cd7ed5e2f6d6b87fd3fb0859699f5e0d73cc9d94270fd831c32467333d |