nufisdk is a sdk for managing CRD Npu Deployments.
Project description
Python CLI (name : nufictl) for CRD npudeploy
poetry shell
poetry install
- set context
# add api url with context_name and url
nufictl config set [context_name] https://nufi.nufi.me:31500/api/deployments
# set config (change config)
nufictl config set_current_context [context_name]
# get config list
nufictl config ls
+---------+-------------+----------------------------------------------+
| Context | Config Name | URL |
+---------+-------------+----------------------------------------------+
| * | default | https://nufi.nufi.me:31500/api/deployments |
+---------+-------------+----------------------------------------------+
# get current context
nufictl config get_current_context 2 ↵
Current context: default (https://nufi.nufi.me:31500/api/deployments)
# reset
nufictl config reset # reset config to default
# help
nufictl config help # see command list
- nufictl exmaple
nufictl help # show command and explanation
nufictl ls
+---------------------------+---------------------------+----------+---------------------+------------------+-------------------+---------------------------------------+
| Name | Namespace | Replicas | Created | Accelerator Type | Accelerator Count | Endpoint URL |
+---------------------------+---------------------------+----------+---------------------+------------------+-------------------+---------------------------------------+
| example-foo-002 | kubeflow-user-example-com | 2/2 | 2024-08-08 06:09:46 | none | 1 | https://example-foo-002-kube |
| example-foo-003 | kubeflow-user-example-com | 1/1 | 2024-08-09 04:24:25 | none | 1 | https://example-foo-003-kube |
| npu-deploy-nginx-hxyvjbwr | kubeflow-user-example-com | 1/1 | 2024-08-05 06:48:04 | skt.com/aix_v1 | 1 | https://npu-deploy-nginx-hxyvjbwr- |
+---------------------------+---------------------------+----------+---------------------+------------------+-------------------+---------------------------------------+
nufictl create
Name [npu-deploy-example]: nufictl-test
Image [nginx]:
CPU [1]:
Memory [1]:
Replicas [1]:
Accelerator Type [npu]:
Accelerator Count [1]:
Successfully created nufictl-test with image: nginx
nufictl run --image=nginx
Successfully created npu-deploy-nginx-70w2c8yt with image: nginx
nufictl delete npu-deploy-example
Successfully deleted npu-deploy-example
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
nufisdk-1.0.0.tar.gz
(8.0 kB
view details)
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
nufisdk-1.0.0-py3-none-any.whl
(11.1 kB
view details)
File details
Details for the file nufisdk-1.0.0.tar.gz.
File metadata
- Download URL: nufisdk-1.0.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f80514292578e04e84960aba806a1eba7b57eae8743ac7d28210affa6503c36f
|
|
| MD5 |
bea2d8e210ad9110df2281140c9f2365
|
|
| BLAKE2b-256 |
1a5f7d1a7eadf80094d9cf454137180a91b775eb6c78dc4a2d73d9159db6d2da
|
File details
Details for the file nufisdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nufisdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
944e4180bc689749c3776421c016b0b580b2173980568967761f1f8eda882820
|
|
| MD5 |
e3c7aeeb6b6629c76e310b105581521c
|
|
| BLAKE2b-256 |
728ca0159d6e37cd21f627df54fb6b88ea1ee518e17b1891d5d3cdd65219fa71
|