No description
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. |
||
|---|---|---|
| doc | ||
| examples | ||
| gerber | ||
| .coveragerc | ||
| .gitignore | ||
| .travis.yml | ||
| doc-requirements.txt | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| requirements.txt | ||
| setup.py | ||
| test-requirements.txt | ||
pcb-tools
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:
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


