Metadata-Version: 2.5
Name: ops-registry-cli
Version: 0.1.0
Summary: Unified offline search across the CANN operator repositories (ops-blas/math/nn/cv/...): which operator, which repo, which arch
Author: ops-registry-cli contributors
License: MIT License
        
        Copyright (c) 2026 asc-devkit-docs contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ascend,blas,cann,cli,documentation,npu,operators,registry
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Documentation
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# ops-registry-cli

One offline index over the CANN operator repositories — [ops-blas](https://gitcode.com/cann/ops-blas), ops-math, ops-nn, ops-cv, ops-fft, ops-solver, ops-rand, ops-tensor, ops-sparse, ops-gnn, ops-transformer, ops-multimodal-fusion, ops-collections, [sip](https://gitcode.com/cann/sip) — answering: *which operator exists, in which repository, for which architecture?*

- `op <name>` — exact operator lookup across all repos and archs (e.g. `op syrk` → ops-blas arch22 + arch35)
- `search` — full-text over operator READMEs, with `--repo` / `--arch` filters
- `read` — read any indexed README
- `init` — shallow-clone the repositories and build the index

## Install

```bash
pip install ops-registry-cli
```

## Quick start

```bash
ops-registry init                    # clone all repos (shallow) + index; or --repo ops-blas to select
ops-registry op syrk                 # where does syrk live? which archs?
ops-registry search "矩阵分解"        # full-text search
ops-registry search gemm --arch 22   # arch filter
ops-registry read ops-blas/blas/syrk/arch22/README.md
```

Already have clones in one directory? `ops-registry --root /path/to/repos ...` or set `OPS_REGISTRY_ROOT`. The index rebuilds automatically when any repo HEAD changes.

This project contains the query client only. Content comes from the cann/ops-* repositories at runtime and follows their own license terms.

## License

MIT
