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

Metadata

Release files for mh-python 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mh-python 0.0.12
File Size Uploaded Provenance
mh_python-0.0.12.tar.gz 20.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mh-python 0.0.12
File Interpreter ABI Platform
mh_python-0.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 40.5 kB

Release files / mh_python-0.0.12.tar.gz

Download URL mh_python-0.0.12.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5cd7bfafd95ccdfab93d98d91594c0f74e213489452270c97007d0fabda85013
BLAKE2b-256 checksum
How to use checksums
ecdf44f0db4e4120686924c5493dab239c9288beff0764e19e4330e7bf33152a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / mh_python-0.0.12-py3-none-any.whl

Download URL mh_python-0.0.12-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c1fa846c1820b36d7ffd1093568b9454ab5ac333a38389580a96b9a2f286402
BLAKE2b-256 checksum
How to use checksums
0e5fd778d200fec7be61cc34f277df8881d8ef562d03e2629b7ed9f2e8c91261
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for mh-python 0.0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page