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_sdk-0.1.2.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
stamm_sdk-0.1.2-py3-none-any.whl
(10.4 kB
view details)
File details
Details for the file stamm_sdk-0.1.2.tar.gz.
File metadata
- Download URL: stamm_sdk-0.1.2.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 |
6c31d51734cc9b4983112d7358f65353cb294b25c46666caf56ec3e56cb5edcf
|
|
| MD5 |
b10dced26264acba6ac65a72a0dfeadb
|
|
| BLAKE2b-256 |
9cad8e36b8b1695c8909957666bf63d812c641201c68b91ce54ed57410646089
|
File details
Details for the file stamm_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: stamm_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7afea62c66eccc531f9fdd0ed1f698302169cbd6c08ce63341d65f854a21d0ce
|
|
| MD5 |
0e76e9b87778d5312299dcdfd01667e8
|
|
| BLAKE2b-256 |
cbe19cab73d40f64bb5bda40616f43f83ac17896785130f2b43c4dc8cb2e43a0
|