Skip to main content

Python client SDK for Stamm federated learning registry

Project description

Stamm SDK

Lightweight Python SDK to interact with the Stamm ML registry API (FastAPI backend), including auth and model inference/update endpoints.

Install Dependencies

Use uv in this repository:

uv sync

Quick Start

from stamm_sdk import Client

sdk = Client(base_url="http://188.245.241.118:8080")
sdk.login(email="you@example.com", password="your-password")

projects = sdk.ml.list_projects()
print(projects)

prediction = sdk.ml.predict(
	project_id="your-project-id",
	model_id="your-model-id",
	features={"temperature": 24.7, "ph": 6.8},
)
print(prediction)

sdk.logout()
sdk.close()

Implemented Modules

  • stamm_sdk.core: config and authenticated HTTP session
  • stamm_sdk.registry: ML endpoint wrappers, artifact bundle, storage manager
  • stamm_sdk.schemas: pydantic schemas for model/federation metadata
  • stamm_sdk.tracking: local experiment logger with optional remote push
  • stamm_sdk.learning: centralized/federated stubs for training orchestration

Environment Variables

  • STAMM_API_BASE_URL: default API base URL
  • STAMM_API_TIMEOUT: request timeout in seconds

Project details


Download files

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

Source Distribution

stamm_package-0.1.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

stamm_package-0.1.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file stamm_package-0.1.1.tar.gz.

File metadata

  • Download URL: stamm_package-0.1.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for stamm_package-0.1.1.tar.gz
Algorithm Hash digest
SHA256 be74c79622c48d6a7229eab9954a2163dc031a45a91155aaa04017d6d42e0bf0
MD5 7412f603d267b37fd3c6b66c8d874655
BLAKE2b-256 fb53c2d2ed0425ed2d6a6bb608696b60eb5c73ad6801a134a44a14784ea50f18

See more details on using hashes here.

File details

Details for the file stamm_package-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for stamm_package-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fcfb813531f91eef406c5023d7dc90365a4a995451e359efa22ee75977ad4248
MD5 335d1e50fbda9524fd7c770e903e9202
BLAKE2b-256 27b7e0f009ab3f3e1d24e4ba9b9d2fa8ef1324f8d713bc4c240b71659a58bf05

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