Skip to main content

modelstore is a library for versioning, exporting, and storing machine learning models

Project description


modelstore is a Python library that allows you to export, save and version a machine learning models.

The library's ModelStore will (a) version your mdoels, (b) store them in a structured way, and (c) collect meta data about the Python runtime that was used to train them.

This library has been developed using Python 3.7.0 and is in pre-alpha. Please open an issue if you have any trouble!


pip install modelstore


from modelstore import ModelStore
# And your other imports

# Train your model
clf = RandomForestClassifier(n_estimators=10)
clf =, Y)

# Create a model store that uses a Google Cloud bucket (or AWS bucket)
model_store = ModelStore.from_gcloud(

# Upload the archive to your model store
domain = "example-model"
meta_data = model_store.upload(domain, model=clf)

# Print the meta-data about the model
print(json.dumps(meta_data, indent=4))

# Download the model back!
target = f"downloaded-{model_type}-model"
os.makedirs(target, exist_ok=True)
model_path =

For more details, please refer to the documentation.


Copyright 2020 Neal Lathia

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for modelstore, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size modelstore-0.0.3-py3-none-any.whl (53.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size modelstore-0.0.3.tar.gz (20.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page