Fast, accurate, terminal-first ONNX model cards — describe what's inside an ONNX model without running it.
Project description
onnx-card
Provide a fast, accurate, terminal-first “ONNX card” describing what is inside an ONNX model — without running it.
onnx-card loads an ONNX model and prints a clean, colorized card showing:
- Model name and metadata (opset, IR version)
- Entrypoint inputs and outputs (with shapes and dtypes)
- Operator counts and statistics
Built for:
- quick inspection
- terminal-first workflows
- scripting and CI usage
Installation
From source (development):
pip install -e .
Once published on PyPI:
pip install onnx-card
Usage
Basic usage:
onnx-card model.onnx
Limit output to top operators:
onnx-card model.onnx --top 10
Sort alphabetically instead of by count:
onnx-card model.onnx --sort name
Select which tables to display:
onnx-card model.onnx --show io # Only inputs/outputs
onnx-card model.onnx --show operators # Only operator counts
onnx-card model.onnx --show all # Everything (default)
JSON output (for scripts / CI):
onnx-card model.onnx --json
You can also run it as a module:
python -m onnx_card model.onnx
Requirements
- Python ≥ 3.9
onnxrich
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onnx_card-0.1.0.tar.gz.
File metadata
- Download URL: onnx_card-0.1.0.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaf153074e402fd38819fe840014d76a77a4b1f3985a834e88151623b0503179
|
|
| MD5 |
c23731641a298e5e8098a76de4aacca9
|
|
| BLAKE2b-256 |
44fe6eec3add441d2a541456ab674248ea9e050bed363aec5fcc634de11740f4
|
File details
Details for the file onnx_card-0.1.0-py3-none-any.whl.
File metadata
- Download URL: onnx_card-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca29e5b812a901d777535511afcf17189dacf7f91dca429613dacfdbc3bfc508
|
|
| MD5 |
3b281ad757675678fd4d1c36bee4f75d
|
|
| BLAKE2b-256 |
0860a2e6b43eaf881781f204a825ca6e196e6e93a168d639a421a2f5a0c752f6
|