Matlab to Python/Numpy translator
Project description
Language translator from MATLAB to Python
This package provides a utility mh_python
to translate MATLAB into Python format while keeping most of the MATLAB accent.
The generated Python code hope to be directly runnable with the mat2py framework.
This mh_python
utility was initially developed under fork of MISS_HIT and
then exported to a seperated branch for uploading to PyPi.
We hope to merge this utility back to miss_hit
after it is stable.
Usage
Try it online here.
# must install
python3 -m pip install mh-python
# recommend install for prettify generated code
python3 -m pip install black isort --upgrade
# convert `.m` file to `.py` file
mh_python tests/mat2np/demo_fft.m --format
Copyright & License
The initial intention of mh_python
was to be an advanced analysis tool of MISS_HIT,
so it is also licensed under the same GNU Affero GPL version 3 (or later) as described in LICENSE.AGPL.
Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mh_python-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2ea019b162bb212e89672acd92c7b2eb9eaf2a2e50663101a9471dd8cab2b34 |
|
MD5 | 5d6e9ecf072ff6d262a57bab9c55a1be |
|
BLAKE2b-256 | 1b5e95c5a0270bcb6596d58204a7e3343d37b56cdab796fadfa9e4fde040a102 |