Skip to main content

Skafos Python SDK

Skafos is the platform for automating the delivery of machine learning models to mobile devices. We provide this SDK as a Python wrapper for uploading, fetching, and listing model versions from the platform.

If you're a Data Scientist or Machine Learning Engineer, you're the one entrusted with building robust machine learning models. This SDK is an interface to the Skafos platform, allowing you to do the following from your Python development environment:

  • Upload a model version: Save a new version of your machine learning model to the Skafos platform, making it available for mobile delivery.
  • Fetch a model version: Download a previously saved version of your machine learning model from the Skafos platform.
  • List model versions: For each of your apps and models, see what model versions you have previously saved to the Skafos platform.

Supported Platforms

Operating Systems

This is not an exhaustive list of OS that are compatible with skafos. These are the one's we've explicitly tested:

  • macOS 10.12+
  • Linux (Ubuntu 16.0.4+)

Cloud Platforms

  • Google Colab
  • IBM Watson
  • Others coming soon

System Requirements

  • Python 3+
  • Pip (to download skafos from the Python Package Index)

Installation

You can install skafos directly from the Python Package Index (PyPI).

pip install -U skafos

Once you've installed skafos, you can import the package in your Python environment.

import skafos
skafos.get_version() # returns the current SDK version

For more details on installation and usage, see the package documentation.

Documentation

Example: Uploading a Model Version

import os
from skafos import models

# Set your API Token first for repeated use
os.environ["SKAFOS_API_TOKEN"] = "<YOUR-SKAFOS-API-TOKEN>"

# You can retrieve this info with skafos.summary()
org_name = "<YOUR-SKAFOS-ORG-NAME>"    # Example: "mike-gmail-com-467h2"
app_name = "<YOUR-SKAFOS-APP-NAME>"    # Example: "Recommender-App"
model_name = "<YOUR-MODEL-NAME>"       # Example: "RecommenderModel"

# Upload model version to Skafos
model_upload_result = models.upload_version(
    files="<path(s)-to-model-file(s)>", # Example: ["../my_recommender_model.mlmodel"]
    org_name=org_name,
    app_name=app_name,
    model_name=model_name
)

Need Help?

Didn't find something you need? Confused by something? Need more guidance?

Please contact us with questions or feedback! Here are two ways:

Download files

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

Source Distribution

skafos-0.1.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skafos-0.1.2-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file skafos-0.1.2.tar.gz.

File metadata

  • Download URL: skafos-0.1.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for skafos-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f4c7b8d91a78f54ddefbe974441abe15efe9db2715b98490d9ae1ba47b1941b0
MD5 aae76e897afd7b5ad923c61879c70612
BLAKE2b-256 c87655c63596c17d1f593de7296d452f783aca7145edb8d84d2f3b5617a2bdf2

See more details on using hashes here.

File details

Details for the file skafos-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: skafos-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for skafos-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae2c3a55c3835d7ec23ff61dcd24ae626d7fb40bb3729b01d69241db8c129660
MD5 a7aed5cb5754592c5195601759961e78
BLAKE2b-256 39efe0d66964e329b6d4ba8febd90cd5b77633e1f7e3b2834a5b159ea1350c0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page