digocli


Namedigocli JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/xxx/xxxx
Summarydigocli
upload_time2023-04-20 11:54:46
maintainer
docs_urlNone
authorOpenxlab Contributors
requires_python
licenseApache License 2.0
keywords openxlab xxxx
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/xxx/xxxx",
    "name": "digocli",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "openxlab,xxxx",
    "author": "Openxlab Contributors",
    "author_email": "myname@example.com",
    "download_url": "https://files.pythonhosted.org/packages/bd/cb/c797c2a6713cd78f56d152338514768e969d26e042729a40eb84b7e5319d/digocli-0.0.3.tar.gz",
    "platform": null,
    "description": "# openxlab-cli\n\n## Getting started\n\n### \u4ee3\u7801\u7ed3\u6784\n\n\u251c\u2500openxlab\n\u2502  \u251c\u2500config                \u5b58\u653e\u901a\u7528\u914d\u7f6e\n\u2502  \u251c\u2500demo                 \u7ed9\u51fa\u7684\u4e00\u4e2ademo\uff0c\u6a21\u578b\u4e2d\u5fc3\uff0c\u5e94\u7528\u4e2d\u5fc3\u53ef\u4ee5\u521b\u5efa\u81ea\u5df1\u7684\u6587\u4ef6\u5939\n\u2502  \u251c\u2500types\t\t   \u901a\u7528\u53c2\u6570\u5b9a\u4e49\n\u2502  \u251c\u2500xlab\t\t   \u4e3b\u7ad9\u903b\u8f91\n\n### \u67b6\u6784\u8bf4\u660e\n\ntypes \u4e2d\u5b9a\u4e49\u5b9a\u4e49\u547d\u4ee4\u57fa\u7c7b\n\n- sub_command_list \t\u586b\u5165\u4e0b\u4e00\u7ea7\u547d\u4ee4\u5bf9\u5e94\u7684\u7c7b\u5b9a\u4e49\n- add_args        \t\t\u7528\u4e8e\u6dfb\u52a0\u5f53\u524d\u547d\u4ee4\u7684\u53c2\u6570  --xxx\n- take_action \t\t\u7528\u4e8e\u5b9a\u4e49\u5f53\u524d\u547d\u4ee4\u7684\u884c\u4e3a\uff0c\u672a\u5b9e\u73b0\u9ed8\u8ba4\u4f7f\u7528 argparse \u7684 help\n\n\u547d\u4ee4\u7ee7\u627f\u57fa\u7c7b\u5b9e\u73b0\uff0c\u901a\u8fc7 sub_command_list \u5b9e\u73b0\u591a\u7ea7\u5b50\u547d\u4ee4\n\n### \u672c\u5730\u6d4b\u8bd5\n\n```\npython -m openxlab.cli \npython -m openxlab.cli  model help  \npython -m openxlab.cli  model upload\n```\n\n\n### testpypi \u8054\u8c03\n\n```\n\u6253\u5305\uff0c  \u547d\u4ee4\u5c06\u751f\u6210\u4e00\u4e2a dist \u76ee\u5f55\npython setup.py sdist bdist_wheel\n\n\u4e0a\u4f20 pip \u5305\u5230 test pypi\ntwine upload --repository testpypi dist/*\n\n\u4ece test pypi \u4e0b\u8f7d\npip install -i https://test.pypi.org/simple/ openxlab==0.0.1\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "digocli",
    "version": "0.0.3",
    "split_keywords": [
        "openxlab",
        "xxxx"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c224033239602c5857871af0a9f39ca4738bafea75e400a3930318539786f976",
                "md5": "653cf85fb302cd240b56705545132e17",
                "sha256": "8ecc3fb7d57adf187f8559ede0df2f8524b8705cf7ac7cda7ea0b0a8395c1f9b"
            },
            "downloads": -1,
            "filename": "digocli-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "653cf85fb302cd240b56705545132e17",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 17108,
            "upload_time": "2023-04-20T11:54:44",
            "upload_time_iso_8601": "2023-04-20T11:54:44.536602Z",
            "url": "https://files.pythonhosted.org/packages/c2/24/033239602c5857871af0a9f39ca4738bafea75e400a3930318539786f976/digocli-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bdcbc797c2a6713cd78f56d152338514768e969d26e042729a40eb84b7e5319d",
                "md5": "b18a2188ffbda412202d8b0a34237829",
                "sha256": "0b57b285c8582e4d5aceb1d57c01afbbc8e5a7b6dd52596ae85ffd3bcc31022c"
            },
            "downloads": -1,
            "filename": "digocli-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "b18a2188ffbda412202d8b0a34237829",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10333,
            "upload_time": "2023-04-20T11:54:46",
            "upload_time_iso_8601": "2023-04-20T11:54:46.466823Z",
            "url": "https://files.pythonhosted.org/packages/bd/cb/c797c2a6713cd78f56d152338514768e969d26e042729a40eb84b7e5319d/digocli-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-20 11:54:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "xxx",
    "github_project": "xxxx",
    "lcname": "digocli"
}
        
Elapsed time: 0.05737s