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
Metadata
Release files for digocli 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| digocli-0.0.3.tar.gz | 10.3 kB | Without provenance | Details for digocli-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| digocli-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for digocli-0.0.3-py3-none-any.whl |
Total release size: 27.4 kB
Release files / digocli-0.0.3.tar.gz
| Download URL | digocli-0.0.3.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b57b285c8582e4d5aceb1d57c01afbbc8e5a7b6dd52596ae85ffd3bcc31022c
|
|
BLAKE2b-256 checksum How to use checksums |
bdcbc797c2a6713cd78f56d152338514768e969d26e042729a40eb84b7e5319d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Release files / digocli-0.0.3-py3-none-any.whl
| Download URL | digocli-0.0.3-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ecc3fb7d57adf187f8559ede0df2f8524b8705cf7ac7cda7ea0b0a8395c1f9b
|
|
BLAKE2b-256 checksum How to use checksums |
c224033239602c5857871af0a9f39ca4738bafea75e400a3930318539786f976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for digocli 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.