Skip to main content

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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mh_python-0.0.12.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for mh_python-0.0.12.tar.gz
Algorithm Hash digest
SHA256 5cd7bfafd95ccdfab93d98d91594c0f74e213489452270c97007d0fabda85013
MD5 260ae04a16f5fb9721871eb931b2852d
BLAKE2b-256 ecdf44f0db4e4120686924c5493dab239c9288beff0764e19e4330e7bf33152a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mh_python-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for mh_python-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3c1fa846c1820b36d7ffd1093568b9454ab5ac333a38389580a96b9a2f286402
MD5 aea985916ecfeb83a996182ffe80380d
BLAKE2b-256 0e5fd778d200fec7be61cc34f277df8881d8ef562d03e2629b7ed9f2e8c91261

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page