Metadata-Version: 2.4
Name: reliafy
Version: 0.2.0
Summary: Reliafy CLI for reliability analysis, design optimization, and simulation.
Project-URL: Homepage, https://reliafy.pages.dev
Project-URL: Documentation, https://reliafy.pages.dev
Project-URL: Repository, https://github.com/CarrascoCesar/Reliafy-CLI
Author: Cesar Carrasco
Requires-Python: >=3.10
Requires-Dist: filedialpy>=0.1.0
Requires-Dist: matplotlib>=3.7.0
Requires-Dist: numpy>=1.24.0
Requires-Dist: platformdirs>=3.0.0
Requires-Dist: pydantic-core>=2.10.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pyjwt>=2.0.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: requests>=2.31.0
Requires-Dist: rich>=13.0.0
Requires-Dist: typer>=0.9.0
Requires-Dist: typing-extensions>=4.7.0
Description-Content-Type: text/markdown

# Reliafy CLI

Reliafy CLI is a Python-based command-line interface for reliability analysis, reliability-based design optimization, and simulation workflows with profile-based configuration.

Core capabilities include First-Order Reliability Method (FORM), Second-Order Reliability Method (SORM), Inverse FORM, Inverse SORM, Monte Carlo simulation, and Importance Sampling for rare-event probability estimation. These workflows cover forward reliability evaluation, reliability-constrained design, and post-design simulation using a consistent problem-module interface. Reliafy supports correlated, non-normal random variables through the Nataf transformation, an isoprobabilistic mapping to standard normal space.

Run outputs are designed for practical engineering decisions and reporting workflows. Depending on options, results include reliability metrics and design points, tabulated summaries (Excel/JSON), plot reports (PDF), and pickled Matplotlib figure objects for post-processing.

## Quick Start

```zsh
# Install from PyPI
pip install reliafy

# Show help
reliafy --help

# Copy packaged example problems
reliafy examples copy

# Run an analysis with the default profile
reliafy analyze default --include-sorm --plot-rfad
```

## Profiles

Profiles are YAML files under `profiles/` that control run options.

```zsh
# Create and edit a custom profile
reliafy profile new custom
reliafy profile nano custom
# or
reliafy profile vim custom

# Validate, list, copy, rename
reliafy profile validate custom
reliafy profile list
reliafy profile copy default mycopy
reliafy profile rename oldname newname
```

## Full Documentation

Read the full documentation at:

- https://reliafy.pages.dev/

## Requirements

- Python 3.10+
- Internet connection for API access and authentication

## Testing

Unit and integration tests are provided in the `tests/` directory.

```zsh
# Run unit tests
python -m unittest discover tests -p 'test_*.py' -v

# Run integration tests with real API calls
RELIAFY_RUN_API_TESTS=1 python -m unittest tests.test_cli_api_integration -v
```

See [TESTING.md](TESTING.md) for details on test structure and rate limit behavior.

## Notes

- Auth0 device flow uses public values (domain, client ID, audience). No client secret is used in the CLI.
