mleap
MLeap Python API
What it is and what it does
MLeap is a Python library that provides serialization and deserialization of machine learning pipelines to a portable Bundle.ML format. It integrates with scikit-learn and enables pipelines built with numpy, scipy, pandas, and scikit-learn to be exported to a common interchange format. The library maintains mathematical parity across implementations, allowing models to produce consistent results when moved between different execution environments.
The package depends on numpy, six, scipy, pandas, and scikit-learn, with optional gensim integration for Word2Vec serialization. It is actively maintained, supports Python 3.10 through 3.13, and carries no known security vulnerabilities. Scikit-Learn deserialization is noted as in development.
Use it for:
- Export a fitted scikit-learn pipeline to Bundle.ML for deployment in a lightweight runtime environment.
- Serialize a gensim Word2Vec model to Bundle.ML for consistent text vectorization across environments.
- Share trained ML pipelines between teams via a standardized interchange format.
- Build reproducible ML workflows where serialized models execute consistently across different contexts.
- Integrate scikit-learn models with systems that consume Bundle.ML format.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Serializes and deserializes machine learning pipelines to a portable Bundle.ML format for cross-platform deployment and execution.
Yes. MLeap is actively maintained, carries no vulnerabilities, and solves a real portability problem for machine learning pipelines. The low install friction and permissive license make it a straightforward addition. Install if you need to serialize scikit-learn pipelines or integrate with Bundle.ML-based systems; skip if you have no need for model interchange or deployment outside your current framework.
Install
mleap on PyPI
pip
pip install mleapuv
uv add mleappoetry
poetry add mleapInstalling mleap
Before you install
Low friction: pure Python wheel with five standard dependencies (numpy, six, scipy, pandas, scikit-learn). Actively maintained with a release 24 days old and no known vulnerabilities.
License in practice
Permissive Apache license; no restrictions on commercial or proprietary use.
Quickstart
pip install mleap
from mleap.sklearn.pipeline import to_bundle
import pandas as pd
df = pd.DataFrame([[0.1, 0.2]], columns=['f1', 'f2'])
to_bundle(fitted_pipeline, 'jar:file:/tmp/model.zip', df)
Requires Python 3.10 or later.
Verify before relying
- Whether deserialization from Bundle.ML to scikit-learn is fully implemented (description indicates it is 'coming soon').
- Whether TensorFlow integration mentioned as 'coming soon' is now available in version 0.25.2.
- Performance characteristics and bundle file size overhead compared to native formats.
- Exact API surface and whether all scikit-learn transformer types are supported.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — numpy, six, scipy, pandas, scikit-learn |
| Maintenance | actively maintained — 24 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,313,539/month — #3,146 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mleap-0.25.2-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
spark-sklearnDistributes scikit-learn model training and…
permissive · top 15,000 on PyPI
kfp-pipeline-specProvides the pipeline specification and…
permissive · top 5,000 on PyPI
sklearn2pmmlConverts fitted Scikit-Learn pipelines to PMML…
agpl · top 15,000 on PyPI
azureml-pipelineBuilds, optimizes, and manages machine learning…
unclear · top 15,000 on PyPI
spark-nlpSpark NLP provides distributed natural language…
permissive · top 5,000 on PyPI
synapsemlSynapseML is a distributed machine learning…
permissive · top 5,000 on PyPI
azure-ml-componentAuthoring, managing, and submitting Azure…
unclear · top 15,000 on PyPI
azureml-pipeline-stepsDefines step types for building computation…
unclear · top 15,000 on PyPI
pbsparkConverts protobuf messages to and from PySpark…
permissive · top 15,000 on PyPI
raydpRayDP runs Apache Spark on Ray and integrates…
permissive · top 15,000 on PyPI