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
File details
Details for the file mh_python-0.0.9.tar.gz
.
File metadata
- Download URL: mh_python-0.0.9.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d57fb5983c2279aa2e30146414748a56f049e7ad8372e337642dab10780c945 |
|
MD5 | 7dd7e45d5a857c498e341317fc09b29b |
|
BLAKE2b-256 | 759d2b5e6a8e4fe9b069b316d27ccd95f8b2de95601aada1dbf036233187c063 |
File details
Details for the file mh_python-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: mh_python-0.0.9-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8451193d7e8a5bbe8e4f592691885d85b549c77b1bf1446b11529a6069c57794 |
|
MD5 | 73614071e02af54c0cbe726aca2c47c1 |
|
BLAKE2b-256 | 4cea565febd40594a8388fec715ed73ef363e83044302bb037661122354c41ea |