# victorlei/smop

Small Matlab to Python compiler

Repository: https://github.com/victorlei/smop
Canonical: https://ross.abutalabs.com/products/smop
Language: Python
License: MIT
License Family: permissive
Last push: 2024-02-29T08:17:57+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4820, "days_push": 916, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1124, forks 412 (observed 2026-08-28T04:03:40.709517+00:00)

## What it is
SMOP is a source-to-source compiler that translates Matlab and Octave code into human-readable Python. It includes a runtime library that can be compiled with Cython for additional performance.

## Use cases
- convert matlab scripts to python
- translate octave code to numpy
- migrate legacy matlab codebase to python
- port matlab algorithms to python automatically
- speed up octave code by running it in python

## When to choose
- you have existing Matlab or Octave code you want to run in Python without manual rewriting
- you want readable Python output rather than an embedded interpreter
- your code relies on numerical routines available in numpy/scipy

## When to avoid
- your Matlab code uses toolboxes or GUI features SMOP does not support
- you need a fully supported, actively developed migration tool
- you only need to run Matlab code, not convert it

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: compiler, parser, developer-tools
- domain: developer-tools, programming-languages, compilers, data-science
- platform: python, cli, cross-platform
- tags: matlab, octave, code-translation, source-to-source, numpy

## Member repositories
- victorlei/smop (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:40.709517+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:39:51.936078+00:00, confidence not recorded.
  - readme: https://github.com/victorlei/smop (fetched 2026-08-28T04:03:40.709517+00:00, sha b793bcafdab8)
  - registry_pypi: https://pypi.org/pypi/smop/json (fetched 2026-08-29T12:44:19.678212+00:00, sha 8a0f4ec536d1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
