2014-10-28 13:55:34 +00:00
|
|
|
pcb-tools
|
2014-09-30 21:55:47 +00:00
|
|
|
============
|
2015-02-15 08:29:47 +00:00
|
|
|
[![Travis CI Build Status](https://travis-ci.org/curtacircuitos/pcb-tools.svg?branch=master)](https://travis-ci.org/curtacircuitos/pcb-tools)
|
2014-10-28 13:55:02 +00:00
|
|
|
[![Coverage Status](https://coveralls.io/repos/curtacircuitos/pcb-tools/badge.png?branch=master)](https://coveralls.io/r/curtacircuitos/pcb-tools?branch=master)
|
2015-02-19 02:28:00 +00:00
|
|
|
[![Documentation Status](https://readthedocs.org/projects/pcb-tools/badge/?version=latest)](https://readthedocs.org/projects/pcb-tools/?badge=latest)
|
2014-09-30 21:55:47 +00:00
|
|
|
|
|
|
|
Tools to handle Gerber and Excellon files in Python.
|
|
|
|
|
2014-10-11 17:14:47 +00:00
|
|
|
Useage Example:
|
|
|
|
---------------
|
2014-10-08 03:02:53 +00:00
|
|
|
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
|
2014-10-08 13:27:52 +00:00
|
|
|
ctx = GerberSvgContext()
|
2014-10-08 03:02:53 +00:00
|
|
|
|
|
|
|
# Create SVG image
|
2014-10-08 13:27:52 +00:00
|
|
|
top_copper.render(ctx)
|
|
|
|
nc_drill.render(ctx, 'composite.svg')
|
2014-10-11 17:12:21 +00:00
|
|
|
|
|
|
|
|
2014-10-11 17:14:47 +00:00
|
|
|
Rendering Examples:
|
|
|
|
-------------------
|
|
|
|
###Top Composite rendering
|
2015-02-15 08:29:47 +00:00
|
|
|
![Composite Top Image](examples/cairo_example.png)
|
|
|
|
Source code for this example can be found [here](examples/cairo_example.py).
|
2015-02-19 02:28:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
Documentation:
|
|
|
|
--------------
|
|
|
|
[PCB Tools Documentation](http://pcb-tools.readthedocs.org/en/latest/)
|