digocli
Project description
openxlab-cli
Getting started
代码结构
├─openxlab │ ├─config 存放通用配置 │ ├─demo 给出的一个demo,模型中心,应用中心可以创建自己的文件夹 │ ├─types 通用参数定义 │ ├─xlab 主站逻辑
架构说明
types 中定义定义命令基类
- sub_command_list 填入下一级命令对应的类定义
- add_args 用于添加当前命令的参数 --xxx
- take_action 用于定义当前命令的行为,未实现默认使用 argparse 的 help
命令继承基类实现,通过 sub_command_list 实现多级子命令
本地测试
python -m openxlab.cli
python -m openxlab.cli model help
python -m openxlab.cli model upload
testpypi 联调
打包, 命令将生成一个 dist 目录
python setup.py sdist bdist_wheel
上传 pip 包到 test pypi
twine upload --repository testpypi dist/*
从 test pypi 下载
pip install -i https://test.pypi.org/simple/ openxlab==0.0.1
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
digocli-0.0.3.tar.gz
(10.3 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
digocli-0.0.3-py3-none-any.whl
(17.1 kB
view details)
File details
Details for the file digocli-0.0.3.tar.gz.
File metadata
- Download URL: digocli-0.0.3.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b57b285c8582e4d5aceb1d57c01afbbc8e5a7b6dd52596ae85ffd3bcc31022c
|
|
| MD5 |
b18a2188ffbda412202d8b0a34237829
|
|
| BLAKE2b-256 |
bdcbc797c2a6713cd78f56d152338514768e969d26e042729a40eb84b7e5319d
|
File details
Details for the file digocli-0.0.3-py3-none-any.whl.
File metadata
- Download URL: digocli-0.0.3-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ecc3fb7d57adf187f8559ede0df2f8524b8705cf7ac7cda7ea0b0a8395c1f9b
|
|
| MD5 |
653cf85fb302cd240b56705545132e17
|
|
| BLAKE2b-256 |
c224033239602c5857871af0a9f39ca4738bafea75e400a3930318539786f976
|