reliafy — push SurPyval models to Reliafy
Fit a model anywhere with SurPyval, then make it a shareable, trackable, citable artifact in Reliafy with one call. The notebook is the lab; Reliafy is the plant.
pip install reliafy-client
(The package installs as reliafy-client; you import it as reliafy.)
Quick start
import surpyval as sp
import reliafy
# Fit however you like — censored data, offsets, whatever.
model = sp.Weibull.fit(x=failures, c=censoring_flags)
reliafy.configure(token="rlf_...") # from Reliafy → API access (Pro)
url = reliafy.push(model, name="Pump bearings — 2026 refit", unit="hours")
print(url) # open it in Reliafy
push() uploads the model and its fitted data by default, so Reliafy
shows the full probability plot with confidence bounds — and the model stays
editable and refittable in the app, and can be cited as RCM evidence, used in
RBD blocks, or tracked against a fleet.
Offset / limited-failure-population / zero-inflated fits are detected automatically from the model and reproduced.
Options
# Parameters only (no data upload): functions & life metrics, no plot.
reliafy.push(model, name="From a report", data=False)
# No SurPyval object — just numbers:
reliafy.push_params("weibull", [1200.0, 2.3], name="Handbook value", unit="hours")
# Self-hosted instance:
reliafy.configure(token="rlf_...", base_url="https://reliafy.mycompany.com")
Configuration also reads RELIAFY_TOKEN and RELIAFY_BASE_URL from the
environment.
Notes
- The token is a personal API token, created on the API access page in Reliafy. On Reliafy Cloud this is a Pro feature; self-hosted instances have it unconditionally.
- Supported distributions: Weibull, Exponential, Normal, LogNormal, Gamma, LogLogistic, Exponentiated Weibull, Gumbel, Logistic.
- Pure standard library — no dependencies. You bring SurPyval to do the fit.
Metadata
Release files for reliafy-client 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| reliafy_client-0.2.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reliafy_client-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / reliafy_client-0.2.0.tar.gz
| Download URL | reliafy_client-0.2.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b129e63f829499a9da8061de0e4c6781330cdeff91e2bb004b4d6bdaa5b9c4f
|
|
BLAKE2b-256 checksum How to use checksums |
86ae1404cb3ee07638b6ad154e1781d6c8e792ac3ceb7a140938dd5c751bc7e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / reliafy_client-0.2.0-py3-none-any.whl
| Download URL | reliafy_client-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e324cc85efbd343778b14c37140512f89e3d3fdaef169ee5f7b2902a0be1c88
|
|
BLAKE2b-256 checksum How to use checksums |
0b09214edac86cd583f7b4f066f99bafbb88ef7270448d15cb32fed6d7a194f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|