Reliafy

The command line

pip install reliafy-client installs the reliafy command. It’s also installed as reliafy-client, the same command: if another program called reliafy is already on your path, use reliafy-client instead.

Sign in

pip install reliafy-client
reliafy login                     # asks for your token and saves it
reliafy whoami                    # your account and plan
reliafy logout                    # forget the saved token
  • reliafy login saves the token in ~/.config/reliafy/config.json (%APPDATA%\reliafy on Windows; set RELIAFY_CONFIG_DIR to choose), readable by you only.
  • Or set RELIAFY_TOKEN (and RELIAFY_BASE_URL for a self-hosted server), or pass --token and --base-url.

Any tool action

reliafy tools                                  # every tool and action you may call
reliafy <tool> <action> --arg value …          # any of them
reliafy analyse fit --help          # one action's arguments
reliafy analyse optimal_replacement --distribution-id weibull \
    --params '[{"name":"alpha","value":1200},{"name":"beta","value":2.5}]' \
    --planned-cost 200 --unplanned-cost 1500
reliafy models list
reliafy call get model --args '{"id": "MODEL_ID"}'
  • Values are read as their argument’s type: text, numbers, true/false, JSON for lists and objects (--times 100,500,1000 works too). @file reads a file.
  • --args '{…}' gives every argument as one JSON object.
  • Long jobs are waited for; --no-wait prints the job_id instead.
  • Add --json to any command for JSON instead of the readable summary.

Shortcuts

reliafy fit failures.csv --dist weibull --censor-column status --save "Pump bearings"
reliafy push model.json                        # {distribution, params | data, name?, unit?}
reliafy upload bearings.xlsx --name Bearings   # CSV or .xlsx as a dataset
reliafy upload replacements.csv --x-col fleet_hours --one-stream --record-end 216000   # one stream of events
reliafy import rbd plant.xml                   # BlockSim, Open-PSA, Galileo, RePyability, Excel
reliafy import excel fmea.xlsx --target rcm --position POSITION_ID
reliafy import rcm fmea.csv --position POSITION_ID --dry-run    # CSV or .xlsx, previewed
reliafy ingest usage meters.csv --fleet FLEET_ID
reliafy ingest measurements readings.csv --fleet TRACKED_FLEET_ID
reliafy ingest lives new_failures.csv --dataset DATASET_ID
reliafy photo add IMG_*.jpg --to POSITION_ID   # Reliafy Maintenance users
reliafy mission create --position POSITION_ID --name "10 flight-hour sortie" --length 10 \
  --hours-called "flight hours" --phase Take-off:0.2 --phase Transit:2 --phase Survey:5.6 \
  --phase Return:2 --phase Landing:0.2       # a mission on a position (Reliafy Maintenance users)
reliafy mission get RBD_ID                     # its chance of completing and the failures to expect
  • reliafy fit never guesses what a flag column means: Reliafy reads 0 = failed, 1 = still running. If yours is 1 = failed, add --c-invert.
  • Reliafy Maintenance users also have reliafy ingest readings, reliafy photo link|move|unlink, and reliafy document add FILE.pdf --to ID / reliafy document get ID -o FILE.pdf for PDFs.
  • reliafy mission create changes the mission already on the position with the same --ref (or, with no ref, the same name), so running it again never makes a second one. reliafy mission list --position ID lists them.
  • reliafy photo add and reliafy document add report each file and exit non-zero if any failed.