$npx skillfedfor your agent

model-hosting-container-standards

Python toolkit for standardized model hosting container implementations with Amazon SageMaker integration

With conditionsPyPI Artificial IntelligenceReleased Jun 20262.9M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — model_hosting_container_standards-0.1.16-py3-none-any.whl
v0.1.16 · released 2026-06-15 · Python >=3.10 · 7 runtime deps: fastapi, httpx, jmespath, pydantic, setuptools, starlette, supervisor

Yes, if you are deploying ML models to Amazon SageMaker and want to avoid writing boilerplate FastAPI handlers. The package is actively maintained, has low install friction, carries a permissive license, and provides real value through decorator-based handler registration and priority-based customization. No known vulnerabilities. Install it as a dependency in your SageMaker container image or framework integration layer.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.10 and FastAPI >= 0.117.1.
  • Intended for use within a SageMaker container or FastAPI application; not a standalone server.
  • Low friction: pure Python wheel with no compiled dependencies.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 (permissive): you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include a copy of the license and state any material changes.

last release 2026-06-15 (60 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,917,196 downloads/mo, #2,824 on PyPI

Verify before relying

# Install
pip install model-hosting-container-standards

# In your FastAPI/vLLM server code
import model_hosting_container_standards.sagemaker as sagemaker_standards
from fastapi import Request, Response
import json

@sagemaker_standards.register_ping_handler
async def ping(raw_request: Request) -> Response:
    return Response(content='{"status": "healthy"}', media_type="application/json")

@sagemaker_standards.register_invocation_handler
async def invocations(raw_request: Request) -> Response:
    body = json.loads(await raw_request.body())
    return Response(content=json.dumps({"predictions": ["result"]}), media_type="application/json")
  • Whether the package is actively maintained beyond the single release 60 days ago (repo URL not provided in metadata).
  • Whether all seven runtime dependencies are actually required at runtime or if some are optional/development-only.
Same gist for agents: .md · .json

What it is and what it does

This package standardizes how ML models are deployed to Amazon SageMaker by providing a framework-agnostic Python toolkit built on FastAPI. It handles the boilerplate of setting up `/ping` and `/invocations` endpoints that SageMaker expects, with support for framework integration (vLLM, TensorRT-LLM) via decorators and customer customization via environment variables or custom handler functions. The package also supports LoRA adapter injection, automatic dependency installation from model artifacts, and comprehensive logging and error handling.

Typical use: framework developers register default handlers using `@register_ping_handler` and `@register_invocation_handler` decorators; customers then override behavior by placing a `model.py` script in their model artifact folder with `@custom_ping_handler` or `@custom_invocation_handler` decorators, or by setting environment variables. Handler resolution follows a priority chain (environment variables → customer decorators → function discovery → framework decorators), so customization is straightforward without forking the framework.

Use it for

  • Deploy vLLM or TensorRT-LLM models to SageMaker endpoints with standardized health-check and invocation routes.
  • Add LoRA adapter support to model inference by injecting adapter IDs from request headers into model calls.
  • Customize model behavior per deployment (e.g., different preprocessing logic) by writing a simple `model.py` without modifying framework code.
  • Automatically install and manage model-specific dependencies from a `requirements.txt` in model artifacts before server startup.
  • Integrate multiple ML frameworks under a single SageMaker hosting standard without writing repetitive endpoint boilerplate.

Worth the install?

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

With conditions

Yes, if you are deploying ML models to Amazon SageMaker and want to avoid writing boilerplate FastAPI handlers.

The package is actively maintained, has low install friction, carries a permissive license, and provides real value through decorator-based handler registration and priority-based customization. No known vulnerabilities. Install it as a dependency in your SageMaker container image or framework integration layer.

Install

model-hosting-container-standards on PyPI

Before you install

Low friction: pure Python wheel with no compiled dependencies. Active maintenance (released 60 days ago), supports current Python versions (3.10–3.14). Seven runtime dependencies (fastapi, httpx, jmespath, pydantic, setuptools, starlette, supervisor) are all widely used and stable.

Requires Python >= 3.10 and FastAPI >= 0.117.1. Intended for use within a SageMaker container or FastAPI application; not a standalone server.

License in practice

Apache-2.0 (permissive): you may use, modify, and distribute this package freely in commercial and open-source projects, provided you include a copy of the license and state any material changes.

Quickstart

# Install
pip install model-hosting-container-standards

# In your FastAPI/vLLM server code
import model_hosting_container_standards.sagemaker as sagemaker_standards
from fastapi import Request, Response
import json

@sagemaker_standards.register_ping_handler
async def ping(raw_request: Request) -> Response:
    return Response(content='{"status": "healthy"}', media_type="application/json")

@sagemaker_standards.register_invocation_handler
async def invocations(raw_request: Request) -> Response:
    body = json.loads(await raw_request.body())
    return Response(content=json.dumps({"predictions": ["result"]}), media_type="application/json")

Verify before relying

  • Whether the package is actively maintained beyond the single release 60 days ago (repo URL not provided in metadata).
  • Whether all seven runtime dependencies are actually required at runtime or if some are optional/development-only.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
7 packages
fastapihttpxjmespathpydanticsetuptoolsstarlettesupervisor
MaintenanceActively maintained 60 days since the last release
First released
Downloads2,917,196 / month, #2,824 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: model_hosting_container_standards-0.1.16-py3-none-any.whl

Tags

Capabilities
sagemaker model deploymentml framework hosting standardsfastapi model servingvllm sagemaker integrationtensorrt-llm container standardsmodel inference endpointslora adapter injection
Topics
sagemakermodel-servingml-deployment

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 › “ml framework hosting standards”

  • model-hosting-container-standardsProvides standardized FastAPI-based handlers and decorators for…
  • sagemaker-serveProvides model serving and deployment functionality for machine…
  • falfal is a serverless Python runtime that packages and deploys your…

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

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also sagemaker-serve · sagemaker-inference · sagemaker-training · opentelemetry-instrumentation-sagemaker · sagemaker-schema-inference-artifacts · sagemaker-containers · sagemaker-train · tensorflow-serving-api · azure-ai-agentserver-invocations · sagemaker-data-insights