PyEAGLE is an interchange API to read and write Cadsoft EAGLE XML (v6 and later) schematic, library, and PCB layout files.
Documentation is hosted at Read The Docs.
Install with pip:
$ pip install pyeagle
PyEAGLE is licensed under an MIT license. Please see the LICENSE file for more information.
import pyeagle
from pyeagle.render import SVGRenderer
schematic = pyeagle.open('hello.sch')
lib = pyeagle.open('SparkFun-Sensors.lbr')
for part in lib:
print(part)
package = lib.packages['LGA28L']
SVGRenderer(package, lib.layers).save('lga28l.svg')