gEDA sym2eps Python Wrapper
Provides a _very_ simple wrapper around DJ Delorie’s sym2eps.
This package (and the wrapper) are mostly for fun and for having a simple reference implementation for a Cython wrapper package handy. There isn’t much inherent utility to it. Normally, you would just use DJ Delorie’s C file sym2eps.cc directly. Or better yet, the gaf binary from geda 1.9.2, and get much more than you would from here. This wrapper, for instance, doesn’t support reading from and writing to stdin/stdout, which the C file does.
The excuse for writing this wrapper was to be able to remove the C code and the consequent requirement of figuring out a safe build process for it from within the tendril core module. This way, we just list this package as a dependency and let setuptools / distutils take care of it.
Cython tutorial (for future reference): http://docs.cython.org/src/tutorial/
pip install tendril-gedaif-sym2eps
>>> import sym2eps >>> sym2eps.convert('test/symbol.sym', 'test/output.eps')
The paths specified here should either be absolute or relative to the CWD.
This module is currently broken. It will segfault if you try to convert multiple files. If you think you can fix it, see the convert() function of src/_sym2eps.cc.
Distributed under the terms of the GPLv2 License.
Copyright 2015 Chintalagiri Shashank (Cython Wrapper) Copyright 2006 DJ Delorie (Original C code)