Skip to main content

Python to Scilab bridge

Project description

https://badge.fury.io/py/scilab2py.png/ https://pypip.in/d/scilab2py/badge.png https://coveralls.io/repos/blink1073/scilab2py/badge.png?branch=HEAD

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.5 installed and in your PATH. You must have the Numpy and Scipy libraries installed.

To install Scilab2Py, simply:

$ pip install scilab2py

Note: scilab2py has been tested with Ubuntu 14.04 and Windows 7. It does not work on Ubuntu 12.04.

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

scilab2py-0.1.zip (260.8 kB view details)

Uploaded Source

scilab2py-0.1.tar.gz (247.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scilab2py-0.1-py2.py3-none-any.whl (35.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file scilab2py-0.1.zip.

File metadata

  • Download URL: scilab2py-0.1.zip
  • Upload date:
  • Size: 260.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scilab2py-0.1.zip
Algorithm Hash digest
SHA256 31393888feb694157792e27a859133133c2fc31af3bd9095ef32ccb483d6dfa1
MD5 debce5a5da270f8fb02bbc7d6d14d964
BLAKE2b-256 597dc21133d24846a274ef4dd6ecf384df7c3c680345567677f9ce853f74fd36

See more details on using hashes here.

File details

Details for the file scilab2py-0.1.tar.gz.

File metadata

  • Download URL: scilab2py-0.1.tar.gz
  • Upload date:
  • Size: 247.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scilab2py-0.1.tar.gz
Algorithm Hash digest
SHA256 47b6b4b8b936a5f63adca7094a4070b0bcad4a755934a14f1807719aa642b918
MD5 0221c5ce6f662045912196a49782803c
BLAKE2b-256 b643beb3c8c3804ef8d2d244680d24d8d8a9459be562666a4a4276cfd34e898e

See more details on using hashes here.

File details

Details for the file scilab2py-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for scilab2py-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e52044bb63a3955943eebc35a9803d602c6691b3b51674c19b93e0f9f51f97bc
MD5 e76cfb1552fbd20901941f6b67a70549
BLAKE2b-256 c197a342bd13bb6d8ab9de6677d37c6b1c3be21e138927e3a8b456be0a165df3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page