oct2py 3.0.0

Python to GNU Octave bridge --> run m-files from python.

Oct2Py is a means to seamlessly call M-files and Octave functions from Python. It manages the Octave session for you, sharing data behind the scenes using MAT files. Usage is as simple as:

>>> oc = oct2py.Oct2Py()
>>> x = oc.zeros(3,3)
>>> print x, x.dtype
[[ 0.  0.  0.]
 [ 0.  0.  0.]
 [ 0.  0.  0.]] float64
...

If you want to run legacy m-files, do not have MATLAB(TM), and do not fully trust a code translator, this is your library.

Features

  • Supports all Octave datatypes and most Python datatypes and Numpy dtypes.
  • Provides OctaveMagic for IPython, including inline plotting in notebooks.
  • Supports cell arrays and structs with arbitrary nesting.
  • Supports sparse matrices.
  • Builds methods on the fly linked to Octave commands (e.g. zeros above).
  • Nargout is automatically inferred by the number of return variables.
  • Thread-safety: each Oct2Py object uses an independent Octave session.
  • Can be used as a context manager.
  • Supports Unicode characters.
  • Supports logging of session commands.
  • Optional timeout command parameter to prevent runaway Octave sessions.

Installation

You must have GNU Octave 3.6 or newer installed and in your PATH. On Windows, the easiest way to get Octave is to use an installer from SourceForge. You must have the Numpy and Scipy libraries installed. On Linux, it should be available from your package manager.

To install Oct2Py, simply:

$ pip install oct2py

Documentation

Documentation is available online.

For version information, see the Revision History.

MIT

Author

Steven Silvester

Pip

oct2py==3.0.0

Classifiers

  • Topic :: Software Development
  • Topic :: Scientific/Engineering
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: MIT License
  • Intended Audience :: Science/Research
  • Intended Audience :: Developers
  • Development Status :: 5 - Production/Stable
File Type Python Version Uploaded On Downloads
oct2py-3.0.0.zip Source Jan. 10, 2015 279
oct2py-3.0.0.tar.gz Source Jan. 10, 2015 307
oct2py-3.0.0-py2.py3-none-any.whl Wheel 3.4 Jan. 10, 2015 524
Version Release Date
3.0.0 Jan. 10, 2015
2.4.2 Dec. 21, 2014
2.4.0 Sept. 27, 2014
2.3.0 Sept. 14, 2014
2.2.0 Sept. 14, 2014
2.1.0 Aug. 24, 2014
2.0.0 Aug. 16, 2014
1.6.0 July 26, 2014
1.5.0 July 2, 2014
1.4.0 June 28, 2014
1.3.0 Jan. 20, 2014
1.2.0 Dec. 14, 2013
1.1.1 Nov. 15, 2013
1.1.0 Nov. 4, 2013
1.0.0 Oct. 4, 2013
Date Package Version Action
Feb. 1, 2015, 7:49 p.m. oct2py 2.4.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 2.1.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 2.4.2 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.2.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 2.2.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.3.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.6.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.5.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.1.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 2.3.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 2.0.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 3.0.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.0.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.1.1 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py 1.4.0 Release Created
Feb. 1, 2015, 7:49 p.m. oct2py Package Created