libiir/python
Laurence Withers 5681c97b4e Add experimental Python bindings
This commit adds some experimental Python bindings. These likely need some
further refinement in the building/deployment area, but should serve as a
useful testbed for experimentation and interactive analysis of filters and
the library's behaviour.
2014-07-07 16:46:35 +00:00
..
.gitignore Add experimental Python bindings 2014-07-07 16:46:35 +00:00
README Add experimental Python bindings 2014-07-07 16:46:35 +00:00
iir++.h Add experimental Python bindings 2014-07-07 16:46:35 +00:00
pyiir.i Add experimental Python bindings 2014-07-07 16:46:35 +00:00
setup.py Add experimental Python bindings 2014-07-07 16:46:35 +00:00

README

Experimental Python bindings
============================

These bindings are currently experimental, as it is not yet clear how best
to create and maintain them. They are built upon the C++ interface as the
object oriented nature of it sits much better with Python.

At present, it is necessary to compile and install the C++ library before
working with the bindings.

To generate the bindings, swig 3.0.2 has been used, but earlier versions
may work too:

  swig -c++ -python -py3 pyiir.i

To build the extension, distutils is used:

  python3 setup.py build_ext

Note that the -L ${LIBDIR} option may be handy if libiir++ is not installed
into the system library path.

To install the extension:

 python3 setup.py install