Difference between revisions of "Xorn"

From Free Software Directory
Jump to: navigation, search
(in the words of josh gay: make it less prosey)
 
Line 2: Line 2:
 
|Name=Xorn
 
|Name=Xorn
 
|Short description=Object access and manipulation library
 
|Short description=Object access and manipulation library
|Full description=On the surface, Xorn is just a library to read and write gEDA files. The interesting part however is that it allows different programs—e.g., Python scripts and a GUI application—to work on the same objects. In an application that is based on Xorn, you could run a script in a Python console that acts on the open file. Xorn is designed to work with [[Xi]] but can be integrated with any application that works on schematics.
+
|Full description=Xorn is a library to read and write gEDA files, allowing python scripts and GUI's to work on the same objects. Xorn is designed to work with [[Xi]] but can be integrated with any application that works on schematics.
  
 
There is also a command-line utility with two sub-commands:
 
There is also a command-line utility with two sub-commands:
 
* xorn extract – extract embedded symbols or pixmaps from a schematic
 
* xorn extract – extract embedded symbols or pixmaps from a schematic
 
* xorn find-symbol-by-pinout – pretty much self-explaining
 
* xorn find-symbol-by-pinout – pretty much self-explaining
 
Here is an example how a Python script using Xorn looks like:
 
<syntaxhighlight lang="python">
 
from xorn.geda.read import read
 
from xorn.geda.write import write
 
from xorn.geda.attrib import search_attached
 
 
sch = read('example.sch')
 
 
for ob in sch.toplevel_objects():
 
    if 'R1' in search_attached(ob, 'refdes'):
 
        sch.delete_object(ob)
 
 
write(sch, 'example-without-R1.sch')
 
</syntaxhighlight>
 
 
|Homepage URL=http://hedmen.org/xorn/
 
|Homepage URL=http://hedmen.org/xorn/
 
|User level=intermediate
 
|User level=intermediate

Latest revision as of 15:48, 23 May 2014


[edit]

Xorn

http://hedmen.org/xorn/
Object access and manipulation library

Xorn is a library to read and write gEDA files, allowing python scripts and GUI's to work on the same objects. Xorn is designed to work with Xi but can be integrated with any application that works on schematics.

There is also a command-line utility with two sub-commands:

  • xorn extract – extract embedded symbols or pixmaps from a schematic
  • xorn find-symbol-by-pinout – pretty much self-explaining





Licensing

License

Verified by

Verified on

Notes

Verified by

Fchmmr

Verified on

23 May 2014




Leaders and contributors

Resources and communication

AudienceResource typeURI
Bug Trackinghttp://bugs.hedmen.org/?project=2


Software prerequisites

KindDescription
Required to usePython




Entry

















Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.