Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nufisdk-1.0.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

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

Hashes for nufisdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f80514292578e04e84960aba806a1eba7b57eae8743ac7d28210affa6503c36f
MD5 bea2d8e210ad9110df2281140c9f2365
BLAKE2b-256 1a5f7d1a7eadf80094d9cf454137180a91b775eb6c78dc4a2d73d9159db6d2da

See more details on using hashes here.

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

Hashes for nufisdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 944e4180bc689749c3776421c016b0b580b2173980568967761f1f8eda882820
MD5 e3c7aeeb6b6629c76e310b105581521c
BLAKE2b-256 728ca0159d6e37cd21f627df54fb6b88ea1ee518e17b1891d5d3cdd65219fa71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page