XuehaiPan / nvitop

An interactive NVIDIA-GPU process viewer and beyond, the one-stop solution for GPU process management.
https://nvitop.readthedocs.io
Apache License 2.0
4.79k stars 149 forks source link

refactor(api): compact and rename top-level module #54

Closed XuehaiPan closed 1 year ago

XuehaiPan commented 1 year ago

Issue Type

Description

Compact and rename the top-level module.

Rename nvitop.core to nvitop.api.

The old top-level imports still work fine.

import nvitop
from nvitop import *

NEW: Support top-level imports:

import nvitop.device
import nvitop.host
import nvitop.process
...