Skip to main content

🚢 modelship

Ship machine learning models in minutes, not months

PyPI Python Versions CI/CD License

modelship is a utility application to ease wrapping and deploying machine learning models by autogenerating applications, leveraging modern standards such as ONNX and WebAssembly.

Demo

Examples of static web applications generated with modelship from ONNX models:

Features

  • ONNX model support
  • Generate a static web application with autogenerated form

Installation

Using pip (or any other Python package manager):

pip install modelship

Using uvx:

uvx modelship

Usage

Model metadata

Every model must be described with some basic metadata for conversions to work properly.

Here is the YAML schema:

name: Model Name
description: Model description
inputs:
  float_input:
    name: Float Input Name
    type: float32
    shape: [null, 1]
    min: 10
    max: 100
    step: 1
    default: 50
  string_input:
    name: String Input Name
    type: string
    shape: [null]
outputs:
  float_output:
    name: Float Output Name
    type: float32
    shape: [null, 1]
  string_output:
    name: String Output Name
    type: string
    shape: [null]

Input fields:

  • name: str
  • type: Literal["float32", "string"]
  • shape: list[int | None]
  • (optional) min: float
  • (optional) max: float
  • (optional) step: float
  • (optional) defaut: float | str

Output fields:

  • name: str
  • type: Literal["float32", "string"]
  • shape: list[int | None]

Static web application generation

Provide an ONNX model with its YAML metadata description, and modelship will generate a static web application with an autogenerated HTML form, performing model inference using ONNX Runtime Web (WebAssembly):

$ modelship static --output dist --metadata model/metadata.yml model/model.onnx

The resulting static application in dist can now be deployed on any static hosting provider (GitHub Pages, GitLab Pages, Cloudflare Pages, S3, Vercel)!

License

Licensed under Apache License 2.0

Copyright (c) 2025 - present Romain Clement / Datalpia

Metadata

Release files for modelship 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for modelship 0.2.3
File Size Uploaded
modelship-0.2.3.tar.gz 6.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for modelship 0.2.3
File Interpreter ABI Platform
modelship-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 MB

Release files / modelship-0.2.3.tar.gz

Download URL modelship-0.2.3.tar.gz
Size 6.6 MB
Tags Source
SHA-256 checksum
How to use checksums
9ad7a4d7d7de6653da26be009b233a172d624cca629fceaeeae61d6db8659df7
BLAKE2b-256 checksum
How to use checksums
017499f67e2b256a16d6a33e93aaa4e1b0de97b61533366d429a606393fafdfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.

Transparency log

Release files / modelship-0.2.3-py3-none-any.whl

Download URL modelship-0.2.3-py3-none-any.whl
Size 6.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a638d8a9b65194f3dd6d45dea0b0ae52bf29421c60fa431ddfbe9b4018fe47d3
BLAKE2b-256 checksum
How to use checksums
9f638f44ffaa718cddeae9ac630c2bc62515999343acb1336bde2a4112a9a0a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page