Skip to main content

Push SurPyval models to Reliafy — shareable, trackable, citable reliability analyses.

Project description

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.

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

reliafy_client-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

reliafy_client-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file reliafy_client-0.1.0.tar.gz.

File metadata

  • Download URL: reliafy_client-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for reliafy_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 156def3152ddf06506cba8fa89dbd7f353a5f6d1783a884363d60c0383bf735b
MD5 fddea14c5f7ff80cf90169a65aa86df4
BLAKE2b-256 ac3d3610ccc6cc5999cec950fe5c9242e3bd1996dd35e29c1fa2bc0410011c6a

See more details on using hashes here.

File details

Details for the file reliafy_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reliafy_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for reliafy_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa862db33c71c11f87103eb13e2390a8a680c9d281c26ab16c1f4c88b4a4a475
MD5 f19ee56b5bcb87271bb7f497547f3d5f
BLAKE2b-256 f42723bbc87036ecd2ce82c1bac277e58fe6453daeaea3bb4a017dc7bafae50e

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