Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mh_python-0.0.8.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

mh_python-0.0.8-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file mh_python-0.0.8.tar.gz.

File metadata

  • Download URL: mh_python-0.0.8.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

Hashes for mh_python-0.0.8.tar.gz
Algorithm Hash digest
SHA256 7c5e8ec5997238c2587ef5abf05875429171cbab73d0973e50ebeca58ba29015
MD5 8638550cd731875a31e250c292ddc1d1
BLAKE2b-256 115e3e37b44c222ccf5a723b6c34de6538b511b673fd907ff00b4a38e261d715

See more details on using hashes here.

File details

Details for the file mh_python-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: mh_python-0.0.8-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

Hashes for mh_python-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 566498874d1bb465b6c96a43657384925ef2d7cb61dc297e7de3a35cfa0a34bd
MD5 cf92d0a1e636300408b6caba75d4d064
BLAKE2b-256 60c6d72957dcb3ab0f4451ce73627b66eccb790b714bbcf20550b40a58b99076

See more details on using hashes here.

Supported by

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