Pythonic library for reading/modifying/writing Gerber/Excellon/IPC-356 files.
 
 
 
 
 
Go to file
jaseg a1c1d6d971 Add more tests 2022-01-24 14:19:01 +01:00
.github/workflows
doc Improve cairo backend tests 2021-06-13 16:28:20 +02:00
examples Parser half-refactored 2021-11-08 13:06:23 +01:00
gerbonara Add more tests 2022-01-24 14:19:01 +01:00
.coveragerc
.gitignore Fix more bugs, refined round-trip tests pass now 2021-12-30 12:57:53 +01:00
.gitlab-ci.yml
.pypirc
LICENSE
Makefile
README.md
requirements-dev.txt
requirements-docs.txt
requirements.txt
setup.cfg
setup.py
test-requirements.txt

README.md

pipeline status coverage report pypi aur

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 🐍.