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 sessionstamm_sdk.registry: ML endpoint wrappers, artifact bundle, storage managerstamm_sdk.schemas: pydantic schemas for model/federation metadatastamm_sdk.tracking: local experiment logger with optional remote pushstamm_sdk.learning: centralized/federated stubs for training orchestration
Environment Variables
STAMM_API_BASE_URL: default API base URLSTAMM_API_TIMEOUT: request timeout in seconds
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be74c79622c48d6a7229eab9954a2163dc031a45a91155aaa04017d6d42e0bf0
|
|
| MD5 |
7412f603d267b37fd3c6b66c8d874655
|
|
| BLAKE2b-256 |
fb53c2d2ed0425ed2d6a6bb608696b60eb5c73ad6801a134a44a14784ea50f18
|
File details
Details for the file stamm_package-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stamm_package-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcfb813531f91eef406c5023d7dc90365a4a995451e359efa22ee75977ad4248
|
|
| MD5 |
335d1e50fbda9524fd7c770e903e9202
|
|
| BLAKE2b-256 |
27b7e0f009ab3f3e1d24e4ba9b9d2fa8ef1324f8d713bc4c240b71659a58bf05
|