Skip to main content

Simple scripts supporting open hardware development using CadSoft EAGLE

Project description

Eagle automation

Python’s Eagle Automation (PEA) provides a more Unix-like and scriptable interface to the CadSoft Eagle electronics design package. It is meant to make open hardware development a bit more convenient for anyone that is used to the procedures usually employed by open source software projects (for example using source control tools and one-step builds).

This repository currently contains the following:

  • pea diff

  • Commandline diff tool for schematics, board layouts and libraries that is compatible with git-difftool. For schematics and board layouts, a visual diff is displayed. For libraries, a textual comparison of library elements is shown.

  • pea export

  • A tool that exposes a unified commandline interface to various different ways Eagle offers for exporting artwork. It currently supports exporting Eagle files to Gerber, PDF and PNG formats, generating Excellon drill files and files needed for pick & place machines.

  • pea drill

  • Generate .drl files from .dri without any annoying dialogs.

  • pea bom

  • Generate .json file with the full list of components

  • skel/Makefile

  • An example Makefile that demonstrates how fabrication and assembly documentation for a project can be generated automatically with GNU Make.

Installation

From pipy, do:

% pip install eagle_automation

From the sources, run:

% python setup.py install
% git config --global --add difftool.eaglediff.cmd 'pea diff $LOCAL $REMOTE'

Note these scripts have only been tested using Eagle ≥5.11.0 (and 7.2)

Usage

You can find a Makefile in the skel/ subdirectory that shows how you can automatically build your project’s documentation using make from .sch and .brd files.

To show differences to the design that have not yet been committed:

% git difftool -t eaglediff

To show differences between two tagged versions:

% git difftool -t eaglediff v1.0..v2.0

Note that Eagle windows will blink on and off during the use of these tools. Try not to touch anything while they are doing that.

Also, Eagle sometimes behaves weirdly if more than one instance of it is running: it might occasionally stop in the middle of a script or throw a random error dialog. Because of the closed nature of this software there is nothing that can be done about that. If that bothers you, consider switching to a free EDA tool.

Configuration

These tools make a distinction between “export layers” (e.g. layer names used on the pea export command line) and “Eagle layers” (layer names as they appear in the Eagle user interface). One export layer typically corresponds to one mask and consists of one or more Eagle layers.

For example topcopper export layer by default includes Top, Pads and Vias Eagle layers.

A configuration file provides a mapping between export layers and Eagle layers and some other tweakable settings. Default configuration is installed by setup.py. It should work for most simple one- or two-layer boards.

Should you want to adjust something, you can place your own configuration file to one of the following locations. Settings in later locations override earlier ones:

/etc/eagle_automation.conf
$HOME/.config/eagle_automation.conf
./eagle_automation.conf

You can use the eagle_automation/default.conf file as a template.

Known problems

When exporting to PDF using pea export, default print settings are used. To set them, go to File -> Print setup, make changes, then quit Eagle so that the settings are saved.

Exporting and diffing multi-page schematics doesn’t work well. Only one page can be compared at a time and you have to specify the page number on the command line using –page.

Contributors

Copyright (C) 2014 Tomaz Solc tomaz.solc@tablix.org Copyright (C) 2015 Bernard Pratz guyzmo+github@m0g.net

License

Eagle automation, set of commandline tools for use with CadSoft Eagle Copyright (C) 2014 Tomaz Solc tomaz.solc@tablix.org

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eagle_automation-0.1.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distributions

eagle_automation-0.1.2-py3.4.egg (22.9 kB view details)

Uploaded Source

eagle_automation-0.1.2-py2.7.egg (22.4 kB view details)

Uploaded Source

File details

Details for the file eagle_automation-0.1.2.tar.gz.

File metadata

File hashes

Hashes for eagle_automation-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70968e01fbf8c3e83a0d8af1111ff97a110c90f5bc3347dfebac0f32566be4c4
MD5 bedab94b0b0a74868b060ee6129d05c1
BLAKE2b-256 dfd07e5e3eb4ce18c2f14ede52d1f7cc324d51d43c6b646e437adbf40391f3b4

See more details on using hashes here.

File details

Details for the file eagle_automation-0.1.2-py3.4.egg.

File metadata

File hashes

Hashes for eagle_automation-0.1.2-py3.4.egg
Algorithm Hash digest
SHA256 d4c1380432a5d8226dd5b5ee81ecfcd3e68028246dae17c9652b4e2299d0c058
MD5 20f05b77bb078759523b6a16ac6de3ae
BLAKE2b-256 5ab885e8a556cc46a7d25e89f1dde27902bb016075a7537dded021a7841a4afc

See more details on using hashes here.

File details

Details for the file eagle_automation-0.1.2-py2.7.egg.

File metadata

File hashes

Hashes for eagle_automation-0.1.2-py2.7.egg
Algorithm Hash digest
SHA256 b37f291bf4c892928a6f24061aed63de05139bca5e26ede767824a843e00c4bb
MD5 33a93a9779a34915fa7e419143b9465d
BLAKE2b-256 146b0989e2c707c037f4679a270473de30ae54d662736d4a3b9dad7df0dd269e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page