Skip to main content

Read, modify, and create Cadsoft EAGLE files

Project description

A Python package for creating, modifying, and writing Cadsoft EAGLE files

Dependencies

For writing EAGLE files, the non-standard Python package [lxml] is required. If lxml is not available (for example, with IronPython), it is still possible to read EAGLE files, but it is not possible to write EAGLE files.

Installation

To install, use pip:

pip install eaglepy

The source code (with examples) is available from the GitHub repository:

https://github.com/richard-clark/eaglepy

The package can be installed from the source code by invoking

python setup.py install

from the source directory.

Basic Usage

As a basic example, the following will create (and save) an empty schematic:

from eaglepy import default_layers, eagle

schematic_path = 'schematic.sch'

schematic = eagle.Schematic(sheets = [eagle.Sheet()])

drawing = eagle.Drawing(grid = eagle.Grid(),
                                                layers = default_layers.get_layers(),
                                                document = schematic)

e = eagle.Eagle(drawing)

e.save(schematic_path)

There are a number of example modules provided in the GitHub repository.

Project details


Download files

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

Files for eaglepy, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size eaglepy-1.0.0.tar.gz (26.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page