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

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

Uploaded Source

Built Distribution

mh_python-0.0.4-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mh_python-0.0.4.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for mh_python-0.0.4.tar.gz
Algorithm Hash digest
SHA256 964143326172dd62c11b02c1447e0c8bad594d033fa0ce60638bec3d2cc315c6
MD5 de57f5da552caa9f89025e543b382935
BLAKE2b-256 de06e5ade3312e52904311a452eb56b14389e9b33196804b5261313e4363930e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mh_python-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for mh_python-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 70be3ac595fef41712d401d90bb3c391ff69f52656e88fbc92764e2dc8d45967
MD5 f242a1afe0a2d725586184ee1f3df78d
BLAKE2b-256 a09d757b097a17c9374a5bcafb0ca4c8c2f21b90cfb54a37b9e8424ed0664424

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