ascendtop
ascendtop is a nvitop-like terminal monitor for Ascend NPUs.
It prefers the Ascend DCMI library (libdcmi.so) through Python ctypes, so it does not depend on the exact text layout of npu-smi info. If DCMI is unavailable, it falls back to parsing npu-smi info.
The terminal layout follows nvitop's main screen structure: an nvidia-smi-style device panel, a compact host CPU/MEM/SWAP panel, and a process panel with NPU PID USER NPU-MEM %SM %HMBW %CPU %MEM TIME COMMAND.
Usage
pip install ascendtop
ascendtop
One-shot output:
ascendtop --once
Force backend:
ascendtop --backend dcmi
ascendtop --backend npu-smi
Notes
- The DCMI backend reads card/device metadata, power, temperature, HBM usage, utilization, and process memory via
/usr/local/Ascend/driver/lib64/driver/libdcmi.so. - The fallback parser supports the
npu-smi 26.0.rc1table format. - Process command/user/RSS/CPU details are enriched via
psutilwhen the PID is visible in the current namespace.
Metadata
Release files for ascendtop 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ascendtop-0.2.0.tar.gz | 13.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ascendtop-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.0 kB
Release files / ascendtop-0.2.0.tar.gz
| Download URL | ascendtop-0.2.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97a0cb89bb0fddd72e7760f26a2d6bc99548b78b103842aa115a403a8112c345
|
|
BLAKE2b-256 checksum How to use checksums |
6fd60f733e6d9edc162244b4e460380c6df73b1617cc7c7dc18cadb7612c239e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.
Transparency logRelease files / ascendtop-0.2.0-py3-none-any.whl
| Download URL | ascendtop-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03bcd16a617a9b817e951ed59aa02a2a15d8e769b055e05e7b9d622e63ec0179
|
|
BLAKE2b-256 checksum How to use checksums |
405e39198c0ae2a98dff7d4c1e8624c5697513dba78b3355c64a5d2b42d70c31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.
Transparency log