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 engine.
This mh_python
utility was initially developed under fork of MISS_HIT
and then exported to this seperated repository for uploading to PyPi.
The development may still happen inside the fork. 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 -U 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.11.tar.gz
.
File metadata
- Download URL: mh_python-0.0.11.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d7b73eedabf9e8442a73c7a83ec7bf708561f616f7765503321bf10efd70b65 |
|
MD5 | 1c516f41bb862637169f906b5db01b99 |
|
BLAKE2b-256 | adcc17ed17850934c80852658c099936a2f21114db2eaa9ea0023fd00a089203 |
File details
Details for the file mh_python-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: mh_python-0.0.11-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c611927c494d923f39293b0f2f1682131f6ed7bf36ab0bf931b8d85aa29dea |
|
MD5 | 5e271ff7c91de689e7a2766597fefa45 |
|
BLAKE2b-256 | 284beec00362a67e1039be56dd3545d4df2d224c0359cfd0f57b9fae2ebafcc6 |