python api utils for ningbo server
from gridview.GridviewAccount import GridviewAccount
account = GridviewAccount(
username="xxx",
password="xxx",
)
account.getGlobalInfo()
from gridview.GridviewFileManager import GridviewFileManager
filemanager = GridviewFileManager(account)
print(filemanager.getFileManagerInitInfo())
test_file = filemanager.getFile("/public/home/user/test/461.2dab3c1f.js")
print(test_file.name, test_file.size, test_file.isDirectory)
from gridview.GridviewUploader import GridviewUploader
gd = GridviewDownloader(filemanager)
gd.singleDownload(test_file)
from gridview.GridviewUploader import GridviewUploader
gu = GridviewUploader(filemanager)
gu.singleUpload(
"./dataset.zip",
"/public/home/user/test/",
overwrite=False
)
# run such command on shell with python env
python ./main.py
# install this project as python moudle
pip install -v -e .
# enter command
gridview
# then type help for help
help
-
gridview
- info for cluster
- つづく
-
filemanager
- download
- upload
- つづく
!!! visit website https://www.nerdfonts.com/font-downloads to download and configure one of nerd font for terminal if some characters could not be displayed correctly under CLI.
- command handler
- account keep alive
- file operation
- cluster and contianer monitor
- container ssh(socket)
- tui