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.7.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

mh_python-0.0.7-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mh_python-0.0.7.tar.gz
  • Upload date:
  • Size: 19.1 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.7.tar.gz
Algorithm Hash digest
SHA256 5dd17e06993c76def72e2a78be84a95eaf23067403df04b8bc877260eeb91ec9
MD5 44b967877537020f1d60036d6ad84211
BLAKE2b-256 90e63b27946cd73be4227bf9ae2b814cb57396f93fa35e8b79547431a11a8284

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mh_python-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 20.0 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 68667f3150aed4c2945a39d051733c31dd54923b18fee1a00eaf6d22af24e012
MD5 656180f70e8500d7c3704cf1ac55babc
BLAKE2b-256 e3348a491e95ad35b730396644b8abd715ae6c7630ea864008fffe622c38d76d

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