Metadata-Version: 2.4
Name: simready-manage
Version: 2026.10.0
Summary: SimReady Asset Pipeline Manager (Kit-free review/publish workflow)
Author: NVIDIA Corporation
License-Expression: Apache-2.0
Project-URL: Homepage, https://www.nvidia.com
Keywords: nvidia,simready,manage,pipeline
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: usd-core>=22.11
Requires-Dist: simready.validate>=2026.10.0-rc0
Requires-Dist: simready.package[publish]<2026.10,>=2026.6
Requires-Dist: huggingface_hub>=0.23
Requires-Dist: simready.evaluate<2026.11,>=2026.9.0rc2
Dynamic: license-file

# simready-manage

`simready-manage` is the CLI and Python library that drives the **SimReady asset submission and QA pipeline** — from an OEM's local asset folder all the way through Hugging Face upload and into an NVIDIA QA review workspace.

---

## Two audiences, one tool

### OEM side — validate, package, push

An OEM (equipment manufacturer or content partner) uses `simready-manage submit` to:

1. **Validate** each asset against a SimReady profile (`simready-validate`) — writes `.metadata/{name}_validation.json`
2. **Evaluate** each asset via `simready-evaluate` *(optional)* — writes `.metadata/{name}_benchmark.json`
3. **Package** it into a WRAPP with a BOM (`simready-package`)
4. **Push** the package to their Hugging Face dataset
5. **Write** a submission URL file (one commit-pinned HF URL per asset)

The URL file is handed to NVIDIA QA.

### QA side — pull, verify, ingest

An NVIDIA QA engineer uses `simready-manage pull` + `simready-manage verify` to:

1. **Download** each package at the pinned commit hash
2. **Detect** format (WRAPP with BOM, or plain USD tree)
3. **Convert** plain USD trees to WRAPP (if needed)
4. **Verify** BOM integrity and OEM validation results — without re-running validation
5. **Register** each asset in a local QA workspace manifest

---

## Installation

```bash
pip install simready-manage
```

`simready-evaluate` is included as a required dependency, but running evaluation
tests (step [B] of `submit`) also requires a configured `engines.toml`, the target
runtime installed and licensed, and the matching engine PyPI package.  See the
`simready-evaluate` setup guide for details.  Evaluate results are required for
QA approval; `--skip-benchmark` is available as a temporary workaround during
environment setup only.

---

## Asset structure

`submit` expects the **asset root directory** — the top-level folder whose name is the
asset name.  Inside it must be exactly one intermediate subdirectory containing the root
USD file (whose stem must match the asset root folder name), as required by NP.005.  The
whole asset root is packaged and pushed, intermediate subdirectory included: the package
definition and `.metadata/` are written at the asset root (PKG.DEF.001), so the folder
must contain only the asset's own data.

```
gen_appliance_toaster_v01_01/       <- pass this to submit (asset root == package root)
  com.nvidia.simready.packaging.json  <- written by submit
  .metadata/                        <- written by submit (validation/evaluation sidecars)
  simready_usd/                     <- intermediate subdir (any name)
    gen_appliance_toaster_v01_01.usd  <- root USD (stem == asset root name)
    textures/
    payloads/
```

---

## OEM workflow

### 1. Authenticate with Hugging Face

```bash
huggingface-cli login
# or
export HF_TOKEN=hf_your_token_here
```

### 2. Submit assets

Pass asset root directories (one per asset):

```bash
simready-manage -v \
  --project-config project_config.toml \
  submit \
  assets/apple_a01 \
  assets/crate_01 \
  --hf-dataset acme-corp/simready-assets \
  --profile Robotics-Prop \
  --url-file submission_batch1.txt
```

**Submit from a curated list file** (one asset root path per line):

```bash
# assets.txt
assets/apple_a01
assets/crate_01
# assets/wip_table   <- commented out

simready-manage --project-config project_config.toml submit \
  --from-file assets.txt \
  --hf-dataset acme-corp/simready-assets \
  --profile Robotics-Prop \
```

**Continue past validation failures** (still generates the sidecar):

```bash
simready-manage --project-config project_config.toml submit \
  --from-file assets.txt \
  --hf-dataset acme-corp/simready-assets \
  --profile Robotics-Prop \
  --ignore-validation-results
```

### 3. Key submit flags

| Flag | Default | Description |
|------|---------|-------------|
| `--hf-dataset` | required | OEM HF dataset (`org/repo`) |
| `--profile` | from USD metadata | SimReady profile to validate against (e.g. `Robotics-Prop`) |
| `--from-file PATH` | — | Read asset paths from a text file (one per line, `#` = comment) |
| `--url-file PATH` | auto-timestamped | Where to write the submission URL file |
| `--asset-version` | today `YYYY.MM.DD_00` | Package version string |
| `--license` | `cc-by-4.0` | SPDX license ID |
| `--skip-validate` | off | Skip [A] validation entirely |
| `--ignore-validation-results` | off | Run validation + write sidecar, but continue even if it fails |
| `--skip-benchmark` | off | Skip [B] evaluation entirely |
| `--ignore-benchmark-results` | off | Run evaluation + write sidecar, but continue even if tests fail |
| `--benchmark-tests-path PATH` | auto-inferred | Path to test-definition directory for `simready-evaluate`. Auto-inferred from `profiles_paths` in `project_config.toml`; only needed for non-standard layouts. |
| `--skip-package` | off | Skip [C] packaging. Uses WRAPP from `.packages/<name>/<version>/` if present; otherwise pushes the asset directory directly (`com.nvidia.simready.packaging.json` must exist). |
| `--central-index-repo URL` | — | SimReady Central index repo: GitHub (`https://github.com/NVIDIA-Omniverse/simready-central`) or HuggingFace (`https://huggingface.co/datasets/<org>/<central-repo>`). Merges the new URLs into the index for this dataset. |
| `--open-pr` | off | Open the central index PR: a GitHub Pull Request (`GITHUB_TOKEN`) or a HuggingFace dataset PR (`HF_TOKEN` or `huggingface-cli login`) |

### 4. What submit produces

After a successful run:

```
Submitted 2 asset(s):
  https://huggingface.co/datasets/acme-corp/simready-assets/resolve/abc123/apple_a01/com.nvidia.simready.packaging.json
  https://huggingface.co/datasets/acme-corp/simready-assets/resolve/def456/crate_01/com.nvidia.simready.packaging.json

URL file (diff)  : /workspace/submission_20260826_140000.txt
```

Share `submission_*.txt` with NVIDIA QA, or open the central index PR in the same run:

```bash
# GitHub central index (GITHUB_TOKEN)
simready-manage --project-config project_config.toml submit assets/apple_a01 \
  --hf-dataset acme-corp/simready-assets --profile Robotics-Prop \
  --central-index-repo https://github.com/NVIDIA-Omniverse/simready-central --open-pr

# HuggingFace central index (HF_TOKEN or huggingface-cli login)
simready-manage --project-config project_config.toml submit assets/apple_a01 \
  --hf-dataset acme-corp/simready-assets --profile Robotics-Prop \
  --central-index-repo https://huggingface.co/datasets/<org>/<central-repo> --open-pr
```

The run then also prints `Merged index`, `PR` (the GitHub `.../pull/<N>` or HuggingFace
`.../discussions/<N>` URL) and a hand-off line: share the PR URL with your NVIDIA reviewer.

---

## QA workflow

### 1. Pull submitted packages

Receive the URL file from the OEM, then:

```bash
simready-manage --project-config qa_config.toml pull \
  --from-file submission_20260826_140000.txt \
  --workspace /qa/review/batch_20260826
```

Or pull the URLs a central index PR adds:

```bash
# GitHub PR (GITHUB_TOKEN for private repos)
simready-manage --project-config qa_config.toml pull \
  --from-pr https://github.com/NVIDIA-Omniverse/simready-central/pull/42 \
  --workspace /qa/review/pr42

# HuggingFace PR (HF_TOKEN or huggingface-cli login for private repos)
simready-manage --project-config qa_config.toml pull \
  --from-pr https://huggingface.co/datasets/<org>/<central-repo>/discussions/42 \
  --workspace /qa/review/pr42
```

### 2. Verify

Check BOM integrity and OEM validation results without re-running any tools:

```bash
simready-manage --project-config qa_config.toml verify \
  --workspace /qa/review/batch_20260826 \
  --output-html /qa/review/batch_20260826/report.html
```

```
2/2 asset(s) passed.
Report   : /qa/review/batch_20260826/simready_review_report.html
```

Exit code `0` = all passed, `1` = one or more failed.

For a workspace pulled with `--from-pr`, `verify --post-to-pr` posts the summary as a
comment on that PR, on GitHub or HuggingFace alike.

---

## Configuration

`project_config.toml` is the shared config file used by all SimReady CLI tools:

```toml
[project_root]
setting = "."          # path relative to this file → workspace root

[content_root]
name = "content"       # subdirectory under project_root

[validate]
# paths loaded by simready-validate and simready-package
rules_and_requirements_paths = ["nv_core/sr_specs/docs/requirements"]
features_paths               = ["nv_core/sr_specs/docs/features"]
profiles_paths               = ["nv_core/sr_specs/docs/profiles"]

[cip]
spec_root = "nv_core/sr_specs/docs"    # used by simready-retrieve derive
```

---

## License

Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: LicenseRef-NvidiaProprietary
