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 Distribution
gerbonara-0.9.0.tar.gz
(81.8 kB
view hashes)
Built Distributions
gerbonara-0.9.0-py3.10.egg
(379.1 kB
view hashes)
gerbonara-0.9.0-py3-none-any.whl
(169.7 kB
view hashes)
Close
Hashes for gerbonara-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfbba87d9a2f9b8c3b5374fb84b1ca7cbb13a7c9811a422b02195f4870e32cd2 |
|
MD5 | d3cc4b8c56da44eb2dae6a783c023674 |
|
BLAKE2b-256 | f4f437f6ec16d8097fc4faff3a7a469244bfe0ba97c218f673add4f4f3e54f63 |