No description
Find a file
Girts Folkmanis 369ac7b2a3 cairo_backend.py: use BytesIO instead of StringIO
This fixes a crash in cairocffi on Python3, and should be compatible
with both python2 and python3. In python2, byte strings are just
strings. In python3, when getting binary data, the user probably wants
a byte string instead of a regular string.
2016-11-07 17:11:07 -08:00
doc doc options 2015-02-18 23:28:19 -05:00
examples Cleanup, rendering fixes. 2016-01-28 12:19:03 -05:00
gerber cairo_backend.py: use BytesIO instead of StringIO 2016-11-07 17:11:07 -08:00
.coveragerc add coveralls 2014-09-30 17:49:04 -04:00
.gitignore Cleanup, rendering fixes. 2016-01-28 12:19:03 -05: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 Cleanup, rendering fixes. 2016-01-28 12:19:03 -05:00
README.md Remove "make" line. Apparently it's not necessary. 2016-03-22 13:02:34 -04:00
requirements.txt Fix a bunch of rendering bugs. 2016-01-21 03:57:44 -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.

Usage Example:

import gerber
from gerber.render import GerberCairoContext

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

# Rendering context
ctx = GerberCairoContext()

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

Rendering Examples:

###Top Composite rendering Composite Top Image Composite Bottom Image

Source code for this example can be found here.

Install from source:

$ git clone https://github.com/curtacircuitos/pcb-tools.git
$ cd pcb-tools
$ python setup.py install

Documentation:

PCB Tools Documentation