Pythonic library for reading/modifying/writing Gerber/Excellon/IPC-356 files.
 
 
 
 
 
Go to file
jaseg a939ab016e docs: add quickstart guide 2022-02-06 23:47:31 +01:00
.github/workflows
docs docs: add quickstart guide 2022-02-06 23:47:31 +01:00
examples
gerbonara docs: add quickstart guide 2022-02-06 23:47:31 +01:00
.coveragerc
.gitignore
.gitlab-ci.yml CI: remove tests as our test suite is a bit too heavy for public gitlab runners 2022-02-06 23:32:14 +01:00
.pypirc
LICENSE
Makefile
README.md
setup.py
tox.ini

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