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

Uploaded Source

Built Distribution

mh_python-0.0.10-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mh_python-0.0.10.tar.gz
  • Upload date:
  • Size: 20.0 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.10.tar.gz
Algorithm Hash digest
SHA256 7e1ea2158b4c8d029e59202ebce9bc747a62c563ad3499b0437c50ee8233b5cd
MD5 b78c790c0bdb366c26aac86537fbd198
BLAKE2b-256 d18c9c4630e24ddf0d20b2ad1304f192557a17891244abb8593ee572c7dee6f0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mh_python-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b8950fa76302a291f759b8bec44c1b1ffd1cb8190ae6b244143cedaa65fd4f93
MD5 c3a146504c726b05b190da6c832dee61
BLAKE2b-256 171fce2284020ceab16cb54a2600aacfa4cac992b48505393e1779644696322f

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