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.2.0.tar.gz (6.0 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.2.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reliafy_client-0.2.0.tar.gz
  • Upload date:
  • Size: 6.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 5b129e63f829499a9da8061de0e4c6781330cdeff91e2bb004b4d6bdaa5b9c4f
MD5 22348d8fc977a1c09e2348acf27a6a38
BLAKE2b-256 86ae1404cb3ee07638b6ad154e1781d6c8e792ac3ceb7a140938dd5c751bc7e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reliafy_client-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e324cc85efbd343778b14c37140512f89e3d3fdaef169ee5f7b2902a0be1c88
MD5 6779ca50dcfa05891cd1bbf67a06b58a
BLAKE2b-256 0b09214edac86cd583f7b4f066f99bafbb88ef7270448d15cb32fed6d7a194f4

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