This project has been archived by its maintainers, and is no longer receiving any updates.
Stamm SDK
Python client SDK for the Stamm ML registry (FastAPI backend): authentication, read-only model discovery, and a complete federated-learning pipeline -- data prep, two independent validation gates, training (your own loop or ours), and aggregation -- for the models hosted there.
Full documentation, a step-by-step guide, and per-model training examples: stamm-4m.github.io/soft-sensor-FL
Install
pip install stamm-sdk # auth + read-only discovery
pip install "stamm-sdk[learning]" # + training (scikit-learn, torch, tensorflow)
[learning] pins scikit-learn==1.5.2 exactly -- every sklearn model artifact in the registry's
catalog was saved with that version, and newer sklearn fails to unpickle some of them.
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()
models = sdk.ml.list_models(project_id="your-project-id")
sdk.logout()
sdk.close()
For the federated-learning pipeline (discover a model, prepare data, validate, train, aggregate),
see the full guide or run
notebooks/complete_guide.ipynb end to end against a live
registry.
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.data: feature-mapping and synthetic-data helpers for FL data prepstamm_sdk.validation: Gate 1 (raw-data: range + PSI drift) and Gate 2 (post-training: cosine-similarity collusion detection for gradient models, accuracy-outlier detection for trees)stamm_sdk.learning:FederatedClient(load/train/extract a local update, Manual or Automatic mode),FederatedAggregator(FedAvg for gradient models, tree-ensemble merge for Random Forest/CART),run_federation_round(end-to-end orchestration)
Environment Variables
STAMM_API_BASE_URL: default API base URLSTAMM_API_TIMEOUT: request timeout in seconds
Metadata
Release files for stamm-sdk 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stamm_sdk-0.2.8.tar.gz | 58.7 kB | Without provenance | Details for stamm_sdk-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stamm_sdk-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for stamm_sdk-0.2.8-py3-none-any.whl |
Total release size: 98.4 kB
Release files / stamm_sdk-0.2.8.tar.gz
| Download URL | stamm_sdk-0.2.8.tar.gz |
|---|---|
| Size | 58.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd9391aa0c36d42d7e28ff103adb09c25a94fc1c88aa843c52223b53c6fbad0c
|
|
BLAKE2b-256 checksum How to use checksums |
f70f16d2e36c8790104bedd83f2273494db224172a91603d6cdc9ad2aeb51453
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / stamm_sdk-0.2.8-py3-none-any.whl
| Download URL | stamm_sdk-0.2.8-py3-none-any.whl |
|---|---|
| Size | 39.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2752498233de3f32ad4af46b823efa8c6c82ec12417c566bd0a481454b60735
|
|
BLAKE2b-256 checksum How to use checksums |
978b41005feb348b46532e0a9d92a3c15a39a64925b40cb38f3afb57ea896a26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for stamm-sdk 0.2.8
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.