Python to Scilab bridge
Project description
Scilab2Py is a means to seamlessly call Scilab functions and scripts from Python. It manages the Scilab session for you, sharing data behind the scenes using MAT files. Usage is as simple as:
>>> sci = scilab2py.Scilab2Py()
>>> x = sci.zeros(3,3)
>>> print x, x.dtype
[[ 0. 0. 0.]
[ 0. 0. 0.]
[ 0. 0. 0.]] float64
...
Features
Supports most Scilab datatypes and most Python datatypes and Numpy dtypes.
Provides ScilabMagic 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 Scilab commands (e.g. zeros above).
Nargout is automatically inferred by the number of return variables.
Thread-safety: each Scilab2Py object uses an independent Scilab session.
Can be used as a context manager.
Supports Unicode characters.
Supports logging of session commands.
Optional timeout command parameter to prevent runaway Scilab sessions.
Installation
You must have Scilab 5.4 or newer installed and in your PATH. You must have the Numpy and Scipy libraries installed.
To install Scilab2Py, simply:
$ pip install scilab2py
Documentation
Documentation is available online.
For version information, see the Revision History.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for scilab2py-0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b9b9ad93b3e64c334b8b07464e591aff8c5c28aeed287c61a662e4ef8b48883 |
|
MD5 | 7a351947cb0e692baa187eb60218bcd5 |
|
BLAKE2b-256 | f8a9b086e6f82799b86d74dbfe9e7a0cd6611b041a48e9f4649ec5c4fe9dcb1c |