No description
Find a file
Paulo Henrique Silva 2208fe2205 Fix issue when a region is created as the first graphical object in a file
When regions were the first thing draw there is no current aperture
defined, as regions do not require an aperture, so we use an zeroed
Circle as aperture in this case. Gerber spec says that apertures have
no graphical meaning for regions, so this should be enough.
2015-11-13 04:17:27 -02:00
doc doc options 2015-02-18 23:28:19 -05:00
examples Allow files to be read from strings per #37 2015-10-10 16:51:21 -04:00
gerber Fix issue when a region is created as the first graphical object in a file 2015-11-13 04:17:27 -02:00
.coveragerc add coveralls 2014-09-30 17:49:04 -04:00
.gitignore Merge changes from upstream 2014-10-26 17:20:47 -04:00
.travis.yml Python 3 tests passing 2015-02-18 21:14:30 -05:00
doc-requirements.txt Python 3 tests passing 2015-02-18 21:14:30 -05:00
LICENSE Initial commit 2013-12-17 12:01:34 -08:00
Makefile Add cairo example code, and use example-generated image in readme 2015-02-15 03:29:47 -05:00
README.md Add documentation link to README 2015-02-18 21:28:00 -05:00
requirements.txt Python 3 tests passing 2015-02-18 21:14:30 -05:00
setup.py finish changing the project name 2015-02-18 16:41:56 +01:00
test-requirements.txt Python 3 tests passing 2015-02-18 21:14:30 -05:00

pcb-tools

Travis CI Build Status Coverage Status Documentation Status

Tools to handle Gerber and Excellon files in Python.

Useage Example:

import gerber
from gerber.render import GerberSvgContext

# Read gerber and Excellon files
top_copper = gerber.read('example.GTL')
nc_drill = gerber.read('example.txt')

# Rendering context
ctx = GerberSvgContext()

# Create SVG image
top_copper.render(ctx)
nc_drill.render(ctx, 'composite.svg')

Rendering Examples:

###Top Composite rendering Composite Top Image Source code for this example can be found here.

Documentation:

PCB Tools Documentation