$npx skillfedfor your agent

mat73

Load MATLAB .mat 7.3 into Python native data types (via h5/hd5/hdf5/h5py)

With conditionsPyPI Scientific/EngineeringReleased Jul 202477.9K downloads / moGPL3Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mat73-0.65-py3-none-any.whl
v0.65 · released 2024-07-24 · 2 runtime deps: h5py, numpy

Yes, if you need to read MATLAB 7.3 .mat files in Python. The package is stable, has low install friction, and solves a specific problem scipy.io.loadmat does not. The GPLv3 copyleft license is a consideration for proprietary projects. The repository remains active with no known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a MATLAB 7.3 .mat file; older .mat versions are not supported by this library.
  • Low friction install with two common dependencies (h5py, numpy).
  • Repository is active with recent commits and moderate community engagement (177 stars).

License · maintenance · safety

GPL3 (copyleft) — GPLv3 copyleft license means any derivative work or distribution must also be open source under GPLv3 terms—acceptable for internal tools or open projects, but restrictive for proprietary software.

last release 2024-07-24 (751 days) · last repo commit 2026-07-19 · 177 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 77,877 downloads/mo, #14,486 on PyPI

Verify before relying

pip install mat73

import mat73
data_dict = mat73.loadmat('data.mat')
struct = data_dict['structure']
var = struct[0].var1  # with use_attrdict=True
  • Whether the gap between last release (2024-07-24) and current date indicates active maintenance or dormancy despite recent repo commits.
  • Performance characteristics when loading large .mat files or deeply nested structures.
  • Completeness of support for all HDF5 structures that MATLAB 7.3 can generate.
Same gist for agents: .md · .json

What it is and what it does

mat73 fills a gap left by scipy.io.loadmat, which cannot read MATLAB 7.3 .mat files because they are stored as HDF5 containers. This library wraps h5py and numpy to parse those HDF5 files and reconstruct them as native Python dictionaries, with optional attribute-style access for struct members. It handles standard MATLAB datatypes (numeric arrays, strings, structs as lists of dicts, cells as nested lists, sparse matrices) and can selectively load only specified variables or subtrees to reduce memory overhead.

The package is straightforward to use—a single loadmat() call returns a dictionary—but is narrowly scoped: it only handles MATLAB 7.3 files, does not support proprietary MATLAB types, and cannot write .mat files back. It depends on h5py for HDF5 access and numpy for array representation, both widely available.

Use it for

  • Load simulation or experimental data saved from MATLAB into Python for analysis with scientific libraries.
  • Extract specific variables from large .mat files without loading the entire file into memory using the only_include parameter.
  • Migrate MATLAB-based workflows to Python by reading existing .mat archives as dictionaries.
  • Access nested MATLAB struct hierarchies using Python attribute syntax for cleaner code.
  • Convert MATLAB sparse matrices into scipy.sparse format for linear algebra operations in Python.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to read MATLAB 7.3 .mat files in Python.

The package is stable, has low install friction, and solves a specific problem scipy.io.loadmat does not. The GPLv3 copyleft license is a consideration for proprietary projects. The repository remains active with no known vulnerabilities.

Install

mat73 on PyPI

Before you install

Low friction install with two common dependencies (h5py, numpy). Repository is active with recent commits and moderate community engagement (177 stars).

Requires a MATLAB 7.3 .mat file; older .mat versions are not supported by this library.

License in practice

GPLv3 copyleft license means any derivative work or distribution must also be open source under GPLv3 terms—acceptable for internal tools or open projects, but restrictive for proprietary software.

Quickstart

pip install mat73

import mat73
data_dict = mat73.loadmat('data.mat')
struct = data_dict['structure']
var = struct[0].var1  # with use_attrdict=True

Verify before relying

  • Whether the gap between last release (2024-07-24) and current date indicates active maintenance or dormancy despite recent repo commits.
  • Performance characteristics when loading large .mat files or deeply nested structures.
  • Completeness of support for all HDF5 structures that MATLAB 7.3 can generate.

Package facts

LicenseGPL3 copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
h5pynumpy
MaintenanceActively maintained 751 days since the last release
Last repo commit
First released
Downloads77,877 / month, #14,486 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: GNU General Public License v3 (GPLv3)Operating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: mat73-0.65-py3-none-any.whl

Tags

Capabilities
load matlab mat files pythonmatlab 7.3 hdf5 readerconvert mat to python dictmatlab struct to pythonhdf5 matlab file loadermat73 file parser
Topics
matlab-interopdata-loadinghdf5

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “load matlab mat files python”

  • mat73Loads MATLAB 7.3 .mat files (stored as HDF5) into Python dictionaries…
  • pymatreaderReads MATLAB .mat files in both legacy and HDF5-based formats (>=…
  • soundfileReads and writes audio files in formats like WAV, FLAC, OGG, and MAT…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also pymatreader · h5py · hickle · h5netcdf · h5grove · asammdf · pymap3d · hdf5plugin · netCDF4 · tables